-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from kieler/sho/docker
Sho/docker
- Loading branch information
Showing
7 changed files
with
82 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.ash_history | ||
.env | ||
Dockerfile | ||
docker-compose.yml | ||
.git/ # some build steps require it to be a git repo | ||
.gradle/ |
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,14 @@ | ||
# Copy this example to .env for usage and adapt to your needs. | ||
# The .env file is automatically used by docker-compose command. | ||
|
||
# Adapt to your UID:GID if not 1st user, which defaults to 1000:1000 | ||
# This is only necessary if you want to bind your work directory | ||
# into a running container instance to actively develop this app. | ||
#GID=1000 | ||
#UID=1000 | ||
|
||
# Which port to bind container app on host to. leave commented out | ||
# for dynamically assigned high port which is the default except for | ||
# production environment. | ||
# Note that the value has to end with a colon for correct mapping syntax. | ||
#HOST_PORT=8082: |
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,3 @@ | ||
.ash_history | ||
.env | ||
.gradle/ |
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,20 +2,22 @@ FROM alpine:3.19 | |
|
||
LABEL authors="Arnd Plumhoff <[email protected]>, Sascha Hoppe <[email protected]>" | ||
|
||
ARG ELKLIVE_UID=1002 | ||
ARG ELKLIVE_HOME=/elklive | ||
ARG ELKLIVE_UID=1000 | ||
ARG ELKLIVE_GID=1000 | ||
|
||
RUN apk add --update --no-cache yarn git gradle curl | ||
|
||
RUN adduser elklive -h /elklive -D -u ${ELKLIVE_UID} | ||
RUN addgroup -g ${ELKLIVE_GID} elklive \ | ||
&& adduser elklive -h ${ELKLIVE_HOME} -D -u ${ELKLIVE_UID} -G elklive | ||
|
||
USER elklive | ||
|
||
RUN git clone https://github.com/kieler/elk-live --depth=1 /elklive | ||
COPY --chown=elklive:elklive . ${ELKLIVE_HOME} | ||
|
||
WORKDIR "/elklive/client" | ||
RUN yarn install && yarn run build | ||
RUN cd ${ELKLIVE_HOME}/client && yarn install && yarn run build | ||
|
||
WORKDIR "/elklive/server" | ||
WORKDIR "${ELKLIVE_HOME}/server" | ||
RUN ./gradlew build | ||
|
||
EXPOSE 8080 | ||
|
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