-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from unckan/upgrade_2024
Upgrade 2024
- Loading branch information
Showing
39 changed files
with
887 additions
and
845 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Test Build | ||
on: | ||
- push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Read CKAN_UNI_VERSION from docker/ckan/files/env/base.env | ||
id: read_version | ||
run: | | ||
UNI_VERSION=$(grep CKAN_UNI_VERSION docker/ckan/files/env/base.env | cut -d '=' -f2) | ||
echo "CKAN_UNI_VERSION found $UNI_VERSION" | ||
echo "CKAN_UNI_VERSION=$UNI_VERSION" >> $GITHUB_ENV | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build develop UNCKAN ver ${{ env.CKAN_UNI_VERSION }} | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: docker/ckan | ||
file: docker/ckan/Dockerfile | ||
build-args: | | ||
ENV_NAME=gh-action | ||
TZ=America/Argentina/Cordoba | ||
push: false | ||
env: | ||
CKAN_UNI_VERSION: ${{ env.CKAN_UNI_VERSION }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ docker-compose.yml | |
docker-compose-prod.yml | ||
|
||
docker/src/* | ||
docker/ckan/files/env/local.env | ||
|
||
*.pyc | ||
*.pyo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
.PHONY: build clean up debug | ||
|
||
build: | ||
docker-compose build | ||
@if [ ! -f docker-compose.yml ]; then cp docker-compose.example.yml docker-compose.yml; fi | ||
$(eval TZ ?= America/Argentina/Cordoba) | ||
$(eval ENV_NAME ?= local) | ||
BUILDKIT_PROGRESS=plain docker build \ | ||
--file ckan/Dockerfile \ | ||
--build-arg ENV_NAME=${ENV_NAME} \ | ||
--build-arg TZ=${TZ} \ | ||
-t unckan:${ENV_NAME} ckan | ||
echo "Build done unckan:${ENV_NAME}" | ||
|
||
down: | ||
docker compose down | ||
|
||
clean: | ||
docker-compose down -v --remove-orphans | ||
docker compose down -v --remove-orphans | ||
|
||
debug: | ||
docker-compose build | ||
docker-compose run --service-ports ckan | ||
docker compose build | ||
docker compose run --service-ports ckan_uni | ||
|
||
up: | ||
docker-compose up | ||
docker compose up | ||
|
||
build-up: | ||
docker-compose build | ||
docker-compose up | ||
|
||
gather: | ||
docker-compose exec ckan ckan harvester gather-consumer | ||
|
||
fetch: | ||
docker-compose exec ckan ckan harvester fetch-consumer | ||
|
||
harvest-run: | ||
docker-compose exec ckan ckan harvester run | ||
docker compose build | ||
docker compose up | ||
|
||
ckan-worker: | ||
docker-compose exec ckan ckan jobs worker | ||
docker compose exec ckan_uni ckan jobs worker | ||
|
||
bash: | ||
docker compose exec ckan_uni bash |
Oops, something went wrong.