Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jekabs-karklins
Copy link

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

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

Copy link
Contributor

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.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it to true

Suggested change
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> .
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants