-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added workflows to build and push images for CLP core's dependencies …
…and CLP's execution environment (#14)
- Loading branch information
Naman Gulati
authored
Oct 13, 2021
1 parent
e3c302a
commit 134416a
Showing
6 changed files
with
114 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build and Publish Image with Dependencies to Build CLP Core | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
paths: | ||
- 'components/core/tools/docker-images/clp-env-base-focal/**' | ||
- 'components/core/tools/scripts/lib_install/**' | ||
- '.github/workflows/clp-dependency-image-build.yaml' | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{github.repository}}/clp-core-dependencies-x86-ubuntu-focal | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
name: Build Image | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v2 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: components/core/ | ||
file: components/core/tools/docker-images/clp-env-base-focal/Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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,43 @@ | ||
name: Build and Publish Image with Execution Dependencies | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
paths: | ||
- 'components/core/tools/docker-images/clp-execution-base-focal/**' | ||
- 'components/core/tools/scripts/lib_install/**' | ||
- '.github/workflows/clp-execution-image-build.yaml' | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{github.repository}}/clp-execution-x86-ubuntu-focal | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
name: Build Image | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v2 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./tools/docker-images/clp-execution-base-focal/Dockerfile | ||
push: false | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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,10 @@ | ||
FROM ubuntu:focal | ||
|
||
RUN mkdir -p /root/tools/docker-images/clp-execution-base-focal | ||
ADD ./tools/docker-images/clp-execution-base-focal/setup-scripts /root/tools/docker-images/clp-execution-base-focal/setup-scripts | ||
|
||
RUN mkdir -p /root/tools/scripts/lib_install | ||
ADD ./components/core/tools/scripts/lib_install /root/tools/scripts/lib_install | ||
|
||
RUN cd /root && ./tools/docker-images/clp-execution-base-focal/setup-scripts/install-prebuilt-packages.sh | ||
RUN cd /root && ./tools/docker-images/clp-execution-base-focal/setup-scripts/install-packages-from-source.sh |
3 changes: 3 additions & 0 deletions
3
tools/docker-images/clp-execution-base-focal/setup-scripts/install-packages-from-source.sh
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,3 @@ | ||
#!/bin/bash | ||
|
||
./tools/scripts/lib_install/mariadb-connector-c.sh 3.2.3 |
7 changes: 7 additions & 0 deletions
7
tools/docker-images/clp-execution-base-focal/setup-scripts/install-prebuilt-packages.sh
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,7 @@ | ||
#!/bin/bash | ||
|
||
apt-get update | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y checkinstall \ | ||
rabbitmq-server \ | ||
rsync \ | ||
wget |