-
Notifications
You must be signed in to change notification settings - Fork 16
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
Sho/docker #86
Sho/docker #86
Commits on Jul 17, 2020
-
arl committed
Jul 17, 2020 Configuration menu - View commit details
-
Copy full SHA for fcd4b91 - Browse repository at this point
Copy the full SHA fcd4b91View commit details
Commits on Feb 22, 2021
-
root committed
Feb 22, 2021 Configuration menu - View commit details
-
Copy full SHA for 16f21b3 - Browse repository at this point
Copy the full SHA 16f21b3View commit details -
added build of server component to image to reduce deployment time
arl committedFeb 22, 2021 Configuration menu - View commit details
-
Copy full SHA for 4edb44e - Browse repository at this point
Copy the full SHA 4edb44eView commit details -
Merge branch 'master' of ssh://git.rtsys.informatik.uni-kiel.de:7999/…
…~arl/elkweb-docker
arl committedFeb 22, 2021 Configuration menu - View commit details
-
Copy full SHA for ef7b812 - Browse repository at this point
Copy the full SHA ef7b812View commit details -
arl committed
Feb 22, 2021 Configuration menu - View commit details
-
Copy full SHA for 0be2943 - Browse repository at this point
Copy the full SHA 0be2943View commit details
Commits on Jul 6, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a528699 - Browse repository at this point
Copy the full SHA a528699View commit details
Commits on May 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f5bebb4 - Browse repository at this point
Copy the full SHA f5bebb4View commit details
Commits on May 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1a01203 - Browse repository at this point
Copy the full SHA 1a01203View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9de2cc7 - Browse repository at this point
Copy the full SHA 9de2cc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for be546bf - Browse repository at this point
Copy the full SHA be546bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a69ebe - Browse repository at this point
Copy the full SHA 2a69ebeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c3c652 - Browse repository at this point
Copy the full SHA 1c3c652View commit details -
Configuration menu - View commit details
-
Copy full SHA for d179e88 - Browse repository at this point
Copy the full SHA d179e88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57bf274 - Browse repository at this point
Copy the full SHA 57bf274View commit details -
Configuration menu - View commit details
-
Copy full SHA for ede2bd4 - Browse repository at this point
Copy the full SHA ede2bd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a932362 - Browse repository at this point
Copy the full SHA a932362View commit details -
Configuration menu - View commit details
-
Copy full SHA for c676f2c - Browse repository at this point
Copy the full SHA c676f2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 91aad28 - Browse repository at this point
Copy the full SHA 91aad28View commit details
Commits on May 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9c66e57 - Browse repository at this point
Copy the full SHA 9c66e57View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3fb418 - Browse repository at this point
Copy the full SHA b3fb418View commit details -
Configuration menu - View commit details
-
Copy full SHA for 781a6f3 - Browse repository at this point
Copy the full SHA 781a6f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04987cb - Browse repository at this point
Copy the full SHA 04987cbView commit details
Commits on May 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8591b7e - Browse repository at this point
Copy the full SHA 8591b7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for dbc2655 - Browse repository at this point
Copy the full SHA dbc2655View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31ac53f - Browse repository at this point
Copy the full SHA 31ac53fView commit details
Commits on Apr 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cd1e840 - Browse repository at this point
Copy the full SHA cd1e840View commit details -
Add simple healthcheck to running container.
Using docker-compose's feature to check wether the server is still running from inside the container.
Configuration menu - View commit details
-
Copy full SHA for 2e5eef0 - Browse repository at this point
Copy the full SHA 2e5eef0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0407d49 - Browse repository at this point
Copy the full SHA 0407d49View commit details -
Limiting container resources to ½ CPU and 512m RAM.
Since the process inside the container eats up all the server resources and we don't know why, limiting the available resources to mitigate the problem seems a legit idea. The container might use half a CPU and 512 MB of memory.
Configuration menu - View commit details
-
Copy full SHA for de0bac6 - Browse repository at this point
Copy the full SHA de0bac6View commit details -
Shorten package install to only one command.
Avoiding local cache data as well.
Configuration menu - View commit details
-
Copy full SHA for b2e534c - Browse repository at this point
Copy the full SHA b2e534cView commit details
Commits on Apr 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a9643b9 - Browse repository at this point
Copy the full SHA a9643b9View commit details
Commits on Apr 16, 2024
-
Use Alpine base image as it was set in production.
This change was in use on production server before my time, just committing changes to repo here.
Configuration menu - View commit details
-
Copy full SHA for 67758ce - Browse repository at this point
Copy the full SHA 67758ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2f45d1 - Browse repository at this point
Copy the full SHA f2f45d1View commit details -
Drop hardcoded server IP to use image locally.
There was a hardcoded IP address of the production server webapp.rtsys in port binding configuration. There's no need for that and it blocks using the docker-compose setup locally. Thus, it's removed and we expose the block to all interfaces, via 0.0.0.0.
Configuration menu - View commit details
-
Copy full SHA for 9386f7f - Browse repository at this point
Copy the full SHA 9386f7fView commit details
Commits on Jun 4, 2024
-
Merge branch 'master' of https://git.informatik.uni-kiel.de/ag-rtsys/…
…admin/elkweb-docker into sho/docker This commit merges Docker related files from separate repository into elklive, providing a runtime/development enviroment. It could be used to build and distribute images as well. This commit merges in history from Docker files which goes back to before my time at the working group, but has some addition from me as well.
Configuration menu - View commit details
-
Copy full SHA for c49a457 - Browse repository at this point
Copy the full SHA c49a457View commit details -
Building Docker image locally.
Copying project sources into Docker container image from working copy instead of cloning it again. Cloning sources inside the container is cached by Docker image layer and, thus, never get updated during rebuild. Some build steps rely on git commands which is why .git/ is not ignored in Docker COPY. Also, we are stuck to Alpine v3.19 due to Java incompatibilities with Gradle 8 or newer. Hard coding alpine:3.19 image to work around this issue for now.
Configuration menu - View commit details
-
Copy full SHA for 4c9bc17 - Browse repository at this point
Copy the full SHA 4c9bc17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0069787 - Browse repository at this point
Copy the full SHA 0069787View commit details -
No need to set docker-compose version any longer.
Docker compose version is obsolete. https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-and-name-top-level-elements
Configuration menu - View commit details
-
Copy full SHA for 598ee1c - Browse repository at this point
Copy the full SHA 598ee1cView commit details -
Fix file extension to be ignored from Docker.
No need to copy docker-compose.yml into Docker image.
Configuration menu - View commit details
-
Copy full SHA for 0022c2b - Browse repository at this point
Copy the full SHA 0022c2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e5c2ba - Browse repository at this point
Copy the full SHA 7e5c2baView commit details -
Configuration menu - View commit details
-
Copy full SHA for b58ba29 - Browse repository at this point
Copy the full SHA b58ba29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 114c2c9 - Browse repository at this point
Copy the full SHA 114c2c9View commit details
Commits on Jun 7, 2024
-
Add version placeholder to get rid of git build dep.
There was a git command-line call when yarn builds webpack components of the client. This fails in some build environemnts (e.g. Github build actions or standard Docker builds) when no .git/ folder is found in project root.
Configuration menu - View commit details
-
Copy full SHA for cf8f47f - Browse repository at this point
Copy the full SHA cf8f47fView commit details
Commits on Jun 18, 2024
-
Read version info to render from package.json.
We already have a version information declared in package.json for NPM description. Use it to render in web pages instead of hard coded string or plain git commit hash. Later on, the version information might get bumped when building releases and reused to set tags in git and to Docker images.
Configuration menu - View commit details
-
Copy full SHA for b0adaa3 - Browse repository at this point
Copy the full SHA b0adaa3View commit details -
Read commit hash from environment if available.
When a commit hash is provided via GitHub's build action environment variable it's concatinated to the version string rendered to web pages.
Configuration menu - View commit details
-
Copy full SHA for a37146c - Browse repository at this point
Copy the full SHA a37146cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 124f4a0 - Browse repository at this point
Copy the full SHA 124f4a0View commit details
Commits on Jun 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9cd9306 - Browse repository at this point
Copy the full SHA 9cd9306View commit details -
Configuration menu - View commit details
-
Copy full SHA for ade81d2 - Browse repository at this point
Copy the full SHA ade81d2View commit details -
Pass group id as Docker build arg as well.
Group ID of non-privileged user can now also be passed from outside via Docker argument. This is beneficial when binding your work directory to actively develop the app using a running container instance. By setting matching file permission inside container environment you avoid mixing up file permission between both sides of the mounted folder.
Configuration menu - View commit details
-
Copy full SHA for aa44e95 - Browse repository at this point
Copy the full SHA aa44e95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93f55f7 - Browse repository at this point
Copy the full SHA 93f55f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bc31d5 - Browse repository at this point
Copy the full SHA 1bc31d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3c8266 - Browse repository at this point
Copy the full SHA b3c8266View commit details -
Dynamically assign host port w/ option to specify.
Defaulting to dynamically assigned host port which eases starting multiple container (instances). Add an environment option to specify host port explicitly, e.g. for production environment.
Configuration menu - View commit details
-
Copy full SHA for 0af3fe1 - Browse repository at this point
Copy the full SHA 0af3fe1View commit details -
Comment out all variables in .env.example.
Forcing the user to copy the file and activate relevant lines by removing leading hash character.
Configuration menu - View commit details
-
Copy full SHA for 00bc04c - Browse repository at this point
Copy the full SHA 00bc04cView commit details -
Ignore Docker env files from git and Docker itself.
Some build time dependency caches that should be ignored from version control and from being copied back into container image as well.
Configuration menu - View commit details
-
Copy full SHA for 7012400 - Browse repository at this point
Copy the full SHA 7012400View commit details -
Don't bind work dir into container by default.
Comment out volumes section to leave it as option for local development.
Configuration menu - View commit details
-
Copy full SHA for 0d0650e - Browse repository at this point
Copy the full SHA 0d0650eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48a94c2 - Browse repository at this point
Copy the full SHA 48a94c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f74cefa - Browse repository at this point
Copy the full SHA f74cefaView commit details -
Matching UID/GID of 1st user of a Ubuntu system.
This is the default UID:GID mapping now as the previously hard-coded values of 1002:1002 where used in production system, only.
Configuration menu - View commit details
-
Copy full SHA for 8fdb489 - Browse repository at this point
Copy the full SHA 8fdb489View commit details -
Try tagging image as 'latest', too.
When building locally a 'latest' tag is added to each new image. As it seems, this is done automatically only for tagged releases in GitHub Actions. Let's try setting this tag explicitly as it's the default tag for a image specification when no other is given.
Configuration menu - View commit details
-
Copy full SHA for 6702560 - Browse repository at this point
Copy the full SHA 6702560View commit details -
Revert "Try tagging image as 'latest', too."
This reverts commit 6702560.
Configuration menu - View commit details
-
Copy full SHA for b3efb91 - Browse repository at this point
Copy the full SHA b3efb91View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8939cc - Browse repository at this point
Copy the full SHA d8939ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 782cbc2 - Browse repository at this point
Copy the full SHA 782cbc2View commit details