-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dockerfile for deploying the application #15
base: main
Are you sure you want to change the base?
Conversation
This commit adds a Dockerfile for deploying the application. The Dockerfile sets up a Ubuntu 22.04 environment with necessary packages such as tightvncserver, xfce4, qtcreator, and vim-tiny. It also creates directories and copies application files. The Dockerfile_entrypoint.sh script is included to configure the VNC server and startup script. The container is started with the entrypoint.sh script.
|
||
# Create directories | ||
RUN mkdir -p /ess/ecdc/daqlite/build /ess/ecdc/daqlite/configs | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would create this dummy kafka config to prevent erros if daqlite looing for it.
RUN echo "{}" > /ess/ecdc/daqlite/configs/kafka-config-daqlite.json | |
|
||
ENV DAQLITE_HOME="/ess/ecdc/daqlite/build" | ||
ENV DAQLITE_CONFIG="/ess/ecdc/daqlite/configs" | ||
ENV DAQLITE_PRODUCTION=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change it to true
ENV DAQLITE_PRODUCTION=false | |
ENV DAQLITE_PRODUCTION=true |
@@ -0,0 +1,54 @@ | |||
# docker build --build-arg VNC_PASSWORD=<secret> -f Dockerfile.deploy -t registry.esss.lu.se/ecdc/ess-dmsc/daqlite:<x.x> . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move these docker files into a subfolder
RUN mkdir -p /ess/ecdc/daqlite/build /ess/ecdc/daqlite/configs | ||
|
||
# Copy application files | ||
COPY build/bin /ess/ecdc/daqlite/build/bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think on the daqlite machine we use daqlite/bin and we do not have the "build" before.
This commit adds a Dockerfile for building image from "build" artifact.
The Dockerfile sets up a Ubuntu 22.04 environment with necessary packages such as tightvncserver, xfce4, qtcreator, and vim-tiny. The Dockerfile_entrypoint.sh script is included to configure the VNC server and startup script.
The Dockerfile.deploy can be integrated in Gitlab CI publish step