stashing wip

This commit is contained in:
thelamer 2019-03-16 15:21:32 -07:00
commit d1edc3d521
7 changed files with 163 additions and 0 deletions

37
Dockerfile Normal file
View File

@ -0,0 +1,37 @@
FROM lsiobase/alpine:3.9
# set version label
ARG BUILD_DATE
ARG VERSION
ARG FLEET_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="JAGFin1,Thelamer"
# default env
ENV fleet_database_driver="org.mariadb.jdbc.Driver" \
fleet_app_port=8080 \
fleet_refresh_interval=60
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
curl \
nss \
openjdk8-jre && \
echo "**** install fleet ****" && \
if [ -z ${FLEET_RELEASE+x} ]; then \
FLEET_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/fleet/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/app/fleet && \
curl -o \
/app/fleet/fleet.jar -L \
"https://github.com/linuxserver/fleet/releases/download/${FLEET_RELEASE}/fleet-${FLEET_RELEASE}.jar"
# copy files
COPY root/ /
# ports and volumes
EXPOSE 8080
WORKDIR /app/fleet

40
Dockerfile.aarch64 Normal file
View File

@ -0,0 +1,40 @@
FROM lsiobase/alpine.arm64:3.9
# Add qemu to build on x86_64 systems
COPY qemu-aarch64-static /usr/bin
# set version label
ARG BUILD_DATE
ARG VERSION
ARG FLEET_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="JAGFin1,Thelamer"
# default env
ENV fleet_database_driver="org.mariadb.jdbc.Driver" \
fleet_app_port=8080 \
fleet_refresh_interval=60
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
curl \
nss \
openjdk8-jre && \
echo "**** install fleet ****" && \
if [ -z ${FLEET_RELEASE+x} ]; then \
FLEET_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/fleet/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/app/fleet && \
curl -o \
/app/fleet/fleet.jar -L \
"https://github.com/linuxserver/fleet/releases/download/${FLEET_RELEASE}/fleet-${FLEET_RELEASE}.jar"
# copy files
COPY root/ /
# ports and volumes
EXPOSE 8080
WORKDIR /app/fleet

40
Dockerfile.armhf Normal file
View File

@ -0,0 +1,40 @@
FROM lsiobase/alpine.armhf:3.9
# Add qemu to build on x86_64 systems
COPY qemu-arm-static /usr/bin
# set version label
ARG BUILD_DATE
ARG VERSION
ARG FLEET_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="JAGFin1,Thelamer"
# default env
ENV fleet_database_driver="org.mariadb.jdbc.Driver" \
fleet_app_port=8080 \
fleet_refresh_interval=60
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
curl \
nss \
openjdk8-jre && \
echo "**** install fleet ****" && \
if [ -z ${FLEET_RELEASE+x} ]; then \
FLEET_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/fleet/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/app/fleet && \
curl -o \
/app/fleet/fleet.jar -L \
"https://github.com/linuxserver/fleet/releases/download/${FLEET_RELEASE}/fleet-${FLEET_RELEASE}.jar"
# copy files
COPY root/ /
# ports and volumes
EXPOSE 8080
WORKDIR /app/fleet

24
Dockerfile.crap Normal file
View File

@ -0,0 +1,24 @@
FROM linuxserver/davos:2.2.1 as buildstage
FROM lsiobase/alpine:3.9
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="JAGFin1,Thelamer"
# install packages
RUN \
apk add --no-cache \
curl \
openjdk8-jre
# copy files from build stage and local files
COPY --from=buildstage /app/davos/davos.jar /app/davos/davos.jar
COPY root/ /
# ports and volumes
EXPOSE 8080
WORKDIR /app/davos
VOLUME /config /download

12
README.md Normal file
View File

@ -0,0 +1,12 @@
```
docker run -d \
-e fleet_admin_username=<user> \
-e fleet_admin_password=<pass> \
-e fleet_database_url="jdbc:mariadb://<ip of server>:3306/fleet" \
-e fleet_database_username=<dbuser> \
-e fleet_database_password=<dbpass> \
-e fleet_dockerhub_username=<dhuser> \
-e fleet_dockerhub_password=<dhpass> \
-p 8080:8080 \
linuxserver/fleet
```

View File

@ -0,0 +1,6 @@
#!/usr/bin/with-contenv bash
# permissions
chown -R abc:abc \
/app \
/config

View File

@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bash
exec \
s6-setuidgid abc /usr/bin/java -Dfleet.config.base=/config -jar /app/fleet/fleet.jar