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

Sho/docker #86

Merged
merged 63 commits into from
Jun 25, 2024
Merged

Sho/docker #86

merged 63 commits into from
Jun 25, 2024

Commits on Jul 17, 2020

  1. init

    arl committed Jul 17, 2020
    Configuration menu
    Copy the full SHA
    fcd4b91 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. update termination condition

    root committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    16f21b3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4edb44e View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' of ssh://git.rtsys.informatik.uni-kiel.de:7999/…

    …~arl/elkweb-docker
    arl committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    ef7b812 View commit details
    Browse the repository at this point in the history
  4. merge

    arl committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    0be2943 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2021

  1. Dockerfile edited online with Bitbucket

    updated names
    saftigall committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    a528699 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2022

  1. Configuration menu
    Copy the full SHA
    f5bebb4 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2022

  1. Configuration menu
    Copy the full SHA
    1a01203 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9de2cc7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    be546bf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2a69ebe View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1c3c652 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d179e88 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    57bf274 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ede2bd4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a932362 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c676f2c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    91aad28 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2022

  1. Configuration menu
    Copy the full SHA
    9c66e57 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3fb418 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    781a6f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    04987cb View commit details
    Browse the repository at this point in the history

Commits on May 30, 2022

  1. Update Dockerfile

    saftigall committed May 30, 2022
    Configuration menu
    Copy the full SHA
    8591b7e View commit details
    Browse the repository at this point in the history
  2. Update Dockerfile

    saftigall committed May 30, 2022
    Configuration menu
    Copy the full SHA
    dbc2655 View commit details
    Browse the repository at this point in the history
  3. Update Dockerfile

    saftigall committed May 30, 2022
    Configuration menu
    Copy the full SHA
    31ac53f View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Configuration menu
    Copy the full SHA
    cd1e840 View commit details
    Browse the repository at this point in the history
  2. Add simple healthcheck to running container.

    Using docker-compose's feature to check wether the server is still
    running from inside the container.
    shocau committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    2e5eef0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0407d49 View commit details
    Browse the repository at this point in the history
  4. 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.
    shocau committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    de0bac6 View commit details
    Browse the repository at this point in the history
  5. Shorten package install to only one command.

    Avoiding local cache data as well.
    shocau committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    b2e534c View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Add minimal README.md.

    shocau committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    a9643b9 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. 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.
    shocau committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    67758ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f2f45d1 View commit details
    Browse the repository at this point in the history
  3. 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.
    shocau committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    9386f7f View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. 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.
    shocau committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    c49a457 View commit details
    Browse the repository at this point in the history
  2. 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.
    shocau committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    4c9bc17 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0069787 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    598ee1c View commit details
    Browse the repository at this point in the history
  5. Fix file extension to be ignored from Docker.

    No need to copy docker-compose.yml into Docker image.
    shocau committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    0022c2b View commit details
    Browse the repository at this point in the history
  6. Drop explicit container name.

    shocau committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    7e5c2ba View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b58ba29 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    114c2c9 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. 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.
    shocau committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    cf8f47f View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. 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.
    shocau committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    b0adaa3 View commit details
    Browse the repository at this point in the history
  2. 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.
    shocau committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    a37146c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    124f4a0 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Configuration menu
    Copy the full SHA
    9cd9306 View commit details
    Browse the repository at this point in the history
  2. Specify chown user by name instead of UID.

    It's easier to read.
    shocau committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    ade81d2 View commit details
    Browse the repository at this point in the history
  3. 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.
    shocau committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    aa44e95 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    93f55f7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1bc31d5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b3c8266 View commit details
    Browse the repository at this point in the history
  7. 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.
    shocau committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    0af3fe1 View commit details
    Browse the repository at this point in the history
  8. Comment out all variables in .env.example.

    Forcing the user to copy the file and activate relevant lines by
    removing leading hash character.
    shocau committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    00bc04c View commit details
    Browse the repository at this point in the history
  9. 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.
    shocau committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    7012400 View commit details
    Browse the repository at this point in the history
  10. Don't bind work dir into container by default.

    Comment out volumes section to leave it as option for local development.
    shocau committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    0d0650e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    48a94c2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f74cefa View commit details
    Browse the repository at this point in the history
  13. 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.
    shocau committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    8fdb489 View commit details
    Browse the repository at this point in the history
  14. 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.
    shocau committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    6702560 View commit details
    Browse the repository at this point in the history
  15. Revert "Try tagging image as 'latest', too."

    This reverts commit 6702560.
    shocau committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    b3efb91 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    d8939cc View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    782cbc2 View commit details
    Browse the repository at this point in the history