generated from nicholaswilde/docker-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nicholas Wilde <ncwilde43@gmail.com>
- Loading branch information
1 parent
c6b17be
commit 2005711
Showing
12 changed files
with
97 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM golang:1.14.15-alpine3.13 as build | ||
ARG VERSION | ||
ARG COMMIT=941c0d3a20b88384f303af6311fc33ede9d831b4 | ||
ENV GO111MODULE on | ||
WORKDIR /go/src/github.com/prologic/todo | ||
SHELL ["/bin/ash", "-eo", "pipefail", "-c"] | ||
RUN \ | ||
echo "**** install packages ****" && \ | ||
apk add --no-cache \ | ||
git=2.30.1-r0 \ | ||
make=4.3-r0 \ | ||
build-base=0.5-r2 && \ | ||
echo "**** download todo ****" && \ | ||
mkdir /app && \ | ||
git clone "https://github.com/prologic/todo.git" /go/src/github.com/prologic/todo && \ | ||
git reset --hard "${COMMIT}" && \ | ||
go get -v -d && \ | ||
go install -v && \ | ||
go build . && \ | ||
echo "**** cleanup ****" && \ | ||
rm -rf \ | ||
./*.md \ | ||
.github \ | ||
screenshots | ||
|
||
FROM ghcr.io/linuxserver/baseimage-alpine:3.13 | ||
ARG BUILD_DATE | ||
ARG VERSION | ||
ENV GOPATH /go | ||
LABEL build_version="Version:- ${VERSION} Build-date:- ${BUILD_DATE}" | ||
LABEL maintainer="nicholaswilde" | ||
COPY --from=build --chown=abc:abc /go /go | ||
COPY root/ / | ||
RUN \ | ||
mkdir /data && \ | ||
ln -s /go/src/github.com/prologic/todo / && \ | ||
chown -R abc:abc \ | ||
/data \ | ||
/go | ||
WORKDIR /go/src/github.com/prologic/todo | ||
EXPOSE 8000/tcp | ||
VOLUME \ | ||
/data \ | ||
/todo |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
--- | ||
version: "2.1" | ||
services: | ||
template: | ||
image: nicholaswilde/template:latest | ||
container_name: template-default | ||
todo: | ||
image: nicholaswilde/todo:latest | ||
container_name: todo-default | ||
environment: | ||
THEME: ayu | ||
ports: | ||
- 3000:3000 | ||
- 8000:8000 | ||
restart: unless-stopped | ||
volumes: | ||
- app:/app | ||
- config:/config | ||
- defaults:/defaults | ||
- todo:/todo | ||
- data:/data | ||
volumes: | ||
app: | ||
config: | ||
defaults: | ||
todo: | ||
data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
|
||
# permissions | ||
chown -R abc:abc \ | ||
/config | ||
/data \ | ||
/go |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
cd /go/src/github.com/prologic/todo/ || exit 1 | ||
|
||
exec \ | ||
s6-setuidgid abc \ | ||
/go/src/github.com/prologic/todo/todo \ | ||
-dbpath /data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# Release | ||
VERSION=0.1.0 | ||
VERSION=941c0d3 | ||
LS=1 | ||
NS=nicholaswilde | ||
|
||
IMAGE_NAME=template | ||
IMAGE_NAME=todo | ||
CONTAINER_NAME=${IMAGE_NAME} | ||
CONTAINER_INSTANCE=default | ||
|
||
# Source information used to download source files | ||
# release, source, or commit | ||
TYPE=source | ||
SOURCE_REPO=${IMAGE_NAME} | ||
SOURCE_ORG=Leantime | ||
SOURCE_ORG=prologic | ||
FILENAME=${VERSION}.tar.gz | ||
|
||
# Run | ||
ENV= -e TZ=America/Los_Angeles -e PUID=1000 -e PGID=1000 | ||
ENV= -e TZ=America/Los_Angeles -e PUID=1000 -e PGID=1000 -e THEME=ayu | ||
|
||
PORTS=-p 3000:3000 | ||
PORTS=-p 8000:8000 | ||
|
||
# Build | ||
PLATFORMS="--platform linux/arm/v7,linux/arm64,linux/amd64" | ||
CHECKSUM= | ||
COMMIT=941c0d3a20b88384f303af6311fc33ede9d831b4 | ||
|
||
# Packages | ||
BASE=alpine:3.13.1 | ||
PACKAGES=wget ca-certificates git curl npm nodejs tzdata | ||
BASE=golang:1.14.15-alpine3.13 | ||
PACKAGES=wget ca-certificates git curl npm nodejs tzdata make build-base | ||
|
||
PIP= |