change base image of os to alpine-xfce
make sure we have required packages to run go apps add maketile commands for building and running os
This commit is contained in:
21
Makefile
21
Makefile
@@ -12,10 +12,11 @@ clean:
|
|||||||
@rm package.json
|
@rm package.json
|
||||||
|
|
||||||
build: tidy
|
build: tidy
|
||||||
go build -o ./bin/pm ./cmd/pm
|
@go build -o ./bin/pm ./cmd/pm
|
||||||
go build -o ./bin/tui ./cmd/tui
|
@go build -o ./bin/tui ./cmd/tui
|
||||||
go build -o ./bin/web ./cmd/web
|
@go build -o ./bin/web ./cmd/web
|
||||||
go build -o ./bin/survey ./cmd/survey
|
@go build -o ./bin/survey ./cmd/survey
|
||||||
|
@echo "Build completed successfully. Binaries are located in the ./bin directory."
|
||||||
|
|
||||||
enable-multiplatform-build:
|
enable-multiplatform-build:
|
||||||
@docker buildx create --name multiplatform --use 2>/dev/null || docker buildx use multiplatform
|
@docker buildx create --name multiplatform --use 2>/dev/null || docker buildx use multiplatform
|
||||||
@@ -33,9 +34,19 @@ docker-run:
|
|||||||
docker-push:
|
docker-push:
|
||||||
@docker push telikz/lazypm:latest
|
@docker push telikz/lazypm:latest
|
||||||
|
|
||||||
build-os: build
|
os-build: build
|
||||||
@cp ./bin/survey ./build/survey
|
@cp ./bin/survey ./build/survey
|
||||||
@docker build -t lazyos ./build
|
@docker build -t lazyos ./build
|
||||||
|
@echo "Built lazyos image successfully. You can run it using 'make os-run'."
|
||||||
|
|
||||||
|
os-run: os-build
|
||||||
|
@docker run -d --name=lazyos -e PUID=1000 -e PGID=1000 -e TZ=Etc/UTC -p 3000:3000 -p 3001:3001 --shm-size="1gb" lazyos:latest
|
||||||
|
@echo "Started lazyos container successfully. You can access the web interface at http://localhost:3000."
|
||||||
|
|
||||||
|
os-stop:
|
||||||
|
@docker stop lazyos
|
||||||
|
@docker rm lazyos
|
||||||
|
@echo "Stopped and removed lazyos container successfully."
|
||||||
|
|
||||||
start:
|
start:
|
||||||
@go run ./cmd/survey start
|
@go run ./cmd/survey start
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
FROM lscr.io/linuxserver/webtop:arch-kde
|
FROM lscr.io/linuxserver/webtop:latest
|
||||||
|
|
||||||
|
RUN apk add --no-cache gcompat libc6-compat
|
||||||
|
|
||||||
COPY survey /usr/local/bin/survey
|
COPY survey /usr/local/bin/survey
|
||||||
RUN chmod +x /usr/local/bin/survey
|
RUN chmod +x /usr/local/bin/survey
|
||||||
|
|||||||
Reference in New Issue
Block a user