Commit 1df0e7ac authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all: lakeFS-service
dd if=/dev/zero of=swap bs=1048576 count=2048
chmod 600 swap
mkswap swap
swapon swap
mkdir tmp
mount --bind tmp /tmp
mkdir lakefs-home
tar xf lakeFS-1.53.1.tar.gz
cd lakeFS-1.53.1/webui && HOME=$(CURDIR)/lakefs-home npm install
cd lakeFS-1.53.1/webui && HOME=$(CURDIR)/lakefs-home npm run build
cd lakeFS-1.53.1 && cp api/swagger.yml docs/assets/js/swagger.yml
cd lakeFS-1.53.1 && HOME=$(CURDIR)/lakefs-home GO111MODULE=on GOCACHE=/tmp/gocache GOPATH=$(CURDIR)/../go/go $(CURDIR)/../go/go/bin/go generate ./pkg/api/apigen ./pkg/auth ./pkg/authentication
cd lakeFS-1.53.1 && HOME=$(CURDIR)/lakefs-home GO111MODULE=on GOCACHE=/tmp/gocache GOPATH=$(CURDIR)/../go/go $(CURDIR)/../go/go/bin/go generate ./pkg/actions ./pkg/auth/ ./pkg/authentication ./pkg/distributed ./pkg/graveler ./pkg/graveler/committed ./pkg/graveler/sstable ./pkg/kv ./pkg/permissions ./pkg/pyramid ./tools/wrapgen/testcode
cd lakeFS-1.53.1 && HOME=$(CURDIR)/lakefs-home GO111MODULE=on GOCACHE=/tmp/gocache GOPATH=$(CURDIR)/../go/go $(CURDIR)/../go/go/bin/go run cmd/lakectl/main.go docs > docs/reference/cli.md
cd lakeFS-1.53.1 && HOME=$(CURDIR)/lakefs-home GO111MODULE=on GOCACHE=/tmp/gocache GOPATH=$(CURDIR)/../go/go $(CURDIR)/../go/go/bin/go build -o lakefs -ldflags "-X github.com/treeverse/lakefs/pkg/version.Version=1.53.1" -v ./cmd/lakefs
cd lakeFS-1.53.1 && HOME=$(CURDIR)/lakefs-home GO111MODULE=on GOCACHE=/tmp/gocache GOPATH=$(CURDIR)/../go/go $(CURDIR)/../go/go/bin/go build -o lakectl -ldflags "-X github.com/treeverse/lakefs/pkg/version.Version=1.53.1" -v ./cmd/lakectl
install -v -D -m0755 lakeFS-1.53.1/lakefs /usr/bin/lakefs
install -v -D -m0755 lakeFS-1.53.1/lakectl /usr/bin/lakectl
cp -r lakeFS-1.53.1/webui/dist /srv/www
rm -rf lakeFS-1.53.1
@echo "$$LAKEFS_SERVICE" > /lib/systemd/system/lakefs.service
systemctl enable lakefs.service
rm -rf lakefs-home
umount /tmp
rm -rf tmp
swapoff swap
rm -rf swap
python-client:
tar xf lakeFS-1.53.1.tar.gz
cd lakeFS-1.53.1/clients/python && python3 setup.py install
cd lakeFS-1.53.1/clients/python && pytest
rm -rf lakeFS-1.53.1
lakeFS-service:
define LAKEFS_SERVICE
[Unit]
Description=LakeFS server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/lakefs
Restart=on-failure
[Install]
WantedBy=multi-user.target
endef
export LAKEFS_SERVICE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment