* support flags commands, move to cmd * fix target name * test for happy path importer * add export cmd * fix wrong import, lint warns * increase test timeout * add sellp to allow main test server to start * implement all cmds * handle backup/restore errors * fix import status check, hide secret from logs * backup cmd err tests * randimize test port * avoid dup code in Last controller * add target to make all bin archives * remove container in make * add smiple scripts to simplify commands, update readme * add docs on dockerless, enforce app user * add restore info * move last to lastCommentsScope const
27 lines
1.0 KiB
Makefile
27 lines
1.0 KiB
Makefile
OS=linux
|
|
ARCH=amd64
|
|
|
|
bin:
|
|
docker build -f Dockerfile.artifacts -t remark42.bin .
|
|
- @docker rm -f remark42.bin 2>/dev/null || exit 0
|
|
docker run -d --name=remark42.bin remark42.bin
|
|
docker cp remark42.bin:/artifacts/remark42.$(OS)-$(ARCH) remark42
|
|
docker rm -f remark42.bin
|
|
|
|
docker:
|
|
docker build -t umputun/remark42 --build-arg SKIP_FRONTEND_TEST=true --build-arg SKIP_BACKEND_TEST=true .
|
|
|
|
deploy:
|
|
docker build -f Dockerfile.artifacts -t remark42.bin .
|
|
- @docker rm -f remark42.bin 2>/dev/null || exit 0
|
|
- @mkdir -p bin
|
|
docker run -d --name=remark42.bin remark42.bin
|
|
docker cp remark42.bin:/artifacts/remark42.linux-amd64.tar.gz bin/remark42.linux-amd64.tar.gz
|
|
docker cp remark42.bin:/artifacts/remark42.linux-386.tar.gz bin/remark42.linux-386.tar.gz
|
|
docker cp remark42.bin:/artifacts/remark42.linux-arm64.tar.gz bin/remark42.linux-arm64.tar.gz
|
|
docker cp remark42.bin:/artifacts/remark42.darwin-amd64.tar.gz bin/remark42.darwin-amd64.tar.gz
|
|
docker cp remark42.bin:/artifacts/remark42.windows-amd64.zip bin/remark42.windows-amd64.zip
|
|
docker rm -f remark42.bin
|
|
|
|
|