Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
goofys
.git
18 changes: 18 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: docker-build

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v5
- name: build application
run: make docker-build
- name: check dist
run: ls -l dist/ && file dist/tigrisfs

15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ubuntu:latest AS build

RUN apt-get update && apt-get install -y git make wget curl sudo unzip golang shellcheck s3cmd util-linux fuse3

COPY --link . /src

WORKDIR /src

ENV CGO_ENABLED=0

RUN make setup
RUN make build

FROM scratch
COPY --from=build /src/tigrisfs /
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ get-deps: s3proxy.jar
build:
go build $(BUILD_PARAM)

.PHONY: docker-build
docker-build:
docker build --output dist .

build-debug:
CGO_ENABLED=1 go build -race $(BUILD_PARAM)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/tigrisdata/tigrisfs

go 1.24
go 1.24.0

require (
cloud.google.com/go/storage v1.51.0
Expand Down