Skip to content

Commit

Permalink
Merge pull request #145 from entelecheia/main
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia authored Jan 31, 2024
2 parents 21e7345 + 8445151 commit 1698c7d
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .copier-docker-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; do NOT edit manually
_commit: v0.28.2-4-g66300b6
_commit: v0.28.3-3-g5892091
_src_path: .
app_dirname: entelecheia
app_install_root: /opt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.5.0
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.IMAGE_NAME }}
tags: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.5.0
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.IMAGE_NAME }}
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .docker/docker.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
APP_VERSION="0.28.3" # The version of the project
APP_VERSION="0.28.4" # The version of the project
2 changes: 1 addition & 1 deletion .github/workflows/deploy-app-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.5.0
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-base-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.5.0
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
python-version: 3.9

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<!--next-version-placeholder-->

## v0.28.4 (2024-01-31)

### Fix

* **dependencies:** Upgrade docker/metadata-action from v5.5.0 to v5.5.1 ([`5892091`](https://github.com/entelecheia/hyperfast-docker-template/commit/5892091d179c3a4575aad399028efd2df3862389))

## v0.28.3 (2024-01-13)

### Fix
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hyperfast-docker-template"
version = "0.28.3"
version = "0.28.4"
description = "Hyperfast Docker Template is a powerful tool that leverages copier to streamline the creation of new Docker projects. It simplifies and accelerates Docker configurations, fostering a highly efficient and user-friendly development experience."
authors = ["Young Joon Lee <entelecheia@hotmail.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tmp/.copier-docker-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; do NOT edit manually
_commit: v0.26.0-13-gd133f63
_commit: v0.28.3-4-g9c84ad9
_src_path: .
app_dirname: entelecheia
app_install_root: /workspace/projects
Expand Down
10 changes: 10 additions & 0 deletions tmp/.docker/.ids/app.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DOCKER_PROJECT_ID="app"

HOST_WORKSPACE_LOCATION=${WORKSPACE_LOCATION:-"$PWD/workspace/$PROJECT_ID"}
HOST_WORKSPACE_ROOT=${WORKSPACE_ROOT:-"$HOST_WORKSPACE_LOCATION/workspace"}
HOST_SCRIPTS_DIR="$PWD/.docker/scripts"
HOST_SSH_DIR="$HOST_WORKSPACE_LOCATION/.ssh"
HOST_CACHE_DIR="$HOST_WORKSPACE_LOCATION/.cache"
HOST_HF_HOME=${HF_HOME:-"${HOST_WORKSPACE_LOCATION}/.cache/huggingface"}
HOST_GH_CONFIG_DIR="$HOST_WORKSPACE_LOCATION/.config/gh"
HOST_PASSAGE_DIR="$HOST_WORKSPACE_LOCATION/.passage"
2 changes: 1 addition & 1 deletion tmp/.docker/.ids/default.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DOCKER_PROJECT_ID="app"
DOCKER_PROJECT_ID="default"

HOST_WORKSPACE_LOCATION=${WORKSPACE_LOCATION:-"$PWD/workspace/$PROJECT_ID"}
HOST_WORKSPACE_ROOT=${WORKSPACE_ROOT:-"$HOST_WORKSPACE_LOCATION/workspace"}
Expand Down
4 changes: 2 additions & 2 deletions tmp/.github/workflows/deploy-app-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.0.0
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.IMAGE_NAME }}
tags: |
Expand All @@ -73,7 +73,7 @@ jobs:
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
uses: docker/build-push-action@v5.0.0
uses: docker/build-push-action@v5.1.0
with:
context: .
file: ./.docker/Dockerfile.app
Expand Down
12 changes: 5 additions & 7 deletions tmp/.github/workflows/deploy-base-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ name: deploy-base-image
on:
workflow_call:
workflow_dispatch:
pull_request:
types:
- closed
push:
branches:
- docker
- docker*
paths:
- ".docker/**"

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
Expand All @@ -18,8 +18,6 @@ env:
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
# this job will only run if the PR has been merged or it is manually triggered
if: ${{ github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
Expand Down Expand Up @@ -61,7 +59,7 @@ jobs:
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.0.0
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.IMAGE_NAME }}
tags: |
Expand Down
8 changes: 3 additions & 5 deletions tmp/.github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: semantic-release
on:
workflow_call:
workflow_dispatch:
pull_request:
types:
- closed
push:
branches:
- release*
paths:
- ".docker/**"

permissions:
contents: write
Expand All @@ -19,8 +19,6 @@ jobs:
build:
# Name the Job
name: semantic-release
# this job will only run if the PR has been merged or it is manually triggered
if: ${{ github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' }}
# Set the agent to run on
runs-on: ${{ matrix.os }}
strategy:
Expand Down
6 changes: 3 additions & 3 deletions tmp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ docker-config-base: ## show the docker base config
@bash .docker/.docker-scripts/docker-compose.sh config --variant base

docker-config-app: ## show the docker app config
@bash .docker/.docker-scripts/docker-compose.sh config --variant app
@bash .docker/.docker-scripts/docker-compose.sh config --variant app --pid app

docker-push-base: ## push the docker base image
@bash .docker/.docker-scripts/docker-compose.sh push --variant base
Expand All @@ -132,7 +132,7 @@ docker-run-app: ## run the docker app image
@bash .docker/.docker-scripts/docker-compose.sh run --variant app

docker-up-app: ## launch the docker app image
@bash .docker/.docker-scripts/docker-compose.sh up --variant app
@bash .docker/.docker-scripts/docker-compose.sh up --variant app --pid app

docker-up-app-detach: ## launch the docker app image in detached mode
@bash .docker/.docker-scripts/docker-compose.sh up --variant app --detach
@bash .docker/.docker-scripts/docker-compose.sh up --variant app --pid app --detach

0 comments on commit 1698c7d

Please sign in to comment.