Skip to content

Commit 300dbb9

Browse files
authored
Merge pull request #99 from dodevops/develop
Main Merge
2 parents 9c42dcb + f33d1d8 commit 300dbb9

64 files changed

Lines changed: 2762 additions & 24989 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/check_commits.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
2525
with:
2626
commits: ${{ steps.get-pr-commits.outputs.commits }}
27-
pattern: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)'
27+
pattern: '^(Merge branch ''main'' into develop)|(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)'
2828
error: 'Commit messages do not follow https://www.conventionalcommits.org/en/v1.0.0/'
2929
- name: Get Changed Files
3030
uses: tj-actions/changed-files@v35.5.6

.github/workflows/image.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,18 @@ jobs:
7070
run: |
7171
cat build/Dockerfile.prefix > Dockerfile
7272
cat "flavour/${{ matrix.flavour.name }}/Dockerfile.flavour" >> Dockerfile
73+
74+
# Download mo
75+
curl -sSL https://raw.githubusercontent.com/tests-always-included/mo/master/mo -o mo
76+
chmod +x mo
77+
78+
cat build/Dockerfile.suffix.mo | BUILD_DATE=$(date -Iseconds) FLAVOUR=${{ matrix.flavour.name }} ./mo > build/Dockerfile.suffix
79+
7380
cat build/Dockerfile.suffix >> Dockerfile
81+
82+
rm mo
83+
env:
84+
FLAVOUR: "${{ matrix.flavour.name }}"
7485

7586
- name: Clean up Docker
7687
run: |

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,16 @@ jobs:
7979
run: |
8080
cat build/Dockerfile.prefix > Dockerfile
8181
cat "flavour/${{ matrix.flavour }}/Dockerfile.flavour" >> Dockerfile
82+
83+
# Download mo
84+
curl -sSL https://raw.githubusercontent.com/tests-always-included/mo/master/mo -o mo
85+
chmod +x mo
86+
87+
cat build/Dockerfile.suffix.mo | BUILD_DATE=$(date -Iseconds) FLAVOUR=${{ matrix.flavour }} ./mo > build/Dockerfile.suffix
88+
8289
cat build/Dockerfile.suffix >> Dockerfile
90+
91+
rm mo
8392
- name: build flavour container
8493
id: build-and-push
8594
uses: docker/build-push-action@v4.0.0

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,10 @@ Installs and configures [Terraform](https://terraform.io)
554554
than the default is used, the volume-target needs to be adapted to the same directory
555555
* Environment TERRAFORM_CREDENTIALS_PATH: Volume target for terraform credentials (optional). Defaults to `/terraform`. If something
556556
different than the default is used, the volume-target needs to be adapted to the same directory
557+
* If you used the browser based login in gcloud, you'll probably need to authenticate using the application-default
558+
login using the gcloud cli by running
559+
560+
gcloud auth application-default login
557561

558562
### <a id="terragrunt"></a> Terragrunt
559563

assets/logo.png

20 KB
Loading

assets/logo.svg

Lines changed: 23 additions & 0 deletions
Loading

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ for FLAVOUR in ${FLAVOURS}
2727
do
2828
cat build/Dockerfile.prefix > Dockerfile
2929
cat "flavour/${FLAVOUR}/Dockerfile.flavour" >> Dockerfile
30-
cat build/Dockerfile.suffix >> Dockerfile
30+
cat build/Dockerfile.suffix.mo | docker run --rm -i -e FLAVOUR=${FLAVOUR} -e BUILD_DATE=$(date -Iseconds) metal3d/mo >> Dockerfile
3131
docker build --pull . -t "ghcr.io/dodevops/cloudcontrol-${FLAVOUR}:${TAG}"
3232
done
3333

build/Dockerfile.prefix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM node:lts-slim as cccClientBuild
22

33
WORKDIR /build
4-
COPY ccc/client /build
4+
COPY ccc-client /build
55
RUN npm config set update-notifier false
66
RUN npm install
7-
RUN npm run-script build
7+
RUN npm run-script build -- --base=/client/
88

99
FROM golang:1.19 AS cccBuild
1010

build/Dockerfile.suffix

Lines changed: 0 additions & 26 deletions
This file was deleted.

build/Dockerfile.suffix.mo

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Features
2+
3+
COPY feature /home/cloudcontrol/feature-installers
4+
COPY assets/feature-installer-utils.sh /
5+
6+
# CCC
7+
8+
COPY --from=cccBuild /build/ccc /usr/local/ccc/ccc
9+
RUN chmod +x /usr/local/ccc/ccc
10+
11+
COPY --from=cccClientBuild /build/dist /usr/local/ccc/client
12+
13+
# Cloud control
14+
15+
COPY assets/cloudcontrol.sh /usr/local/bin/cloudcontrol
16+
RUN chmod +x /usr/local/bin/cloudcontrol
17+
18+
# Chown
19+
20+
RUN chown cloudcontrol -R /home/cloudcontrol
21+
22+
EXPOSE 8080
23+
USER cloudcontrol
24+
ENTRYPOINT ["/usr/local/bin/cloudcontrol"]
25+
WORKDIR /home/cloudcontrol
26+
CMD ["serve"]
27+
28+
# Labels
29+
30+
LABEL io.artifacthub.package.readme-url=https://github.com/dodevops/cloudcontrol
31+
LABEL org.opencontainers.image.created={{BUILD_DATE}}
32+
LABEL org.opencontainers.image.description="The cloud engineer's toolbox - {{FLAVOUR}} flavour"
33+
LABEL org.opencontainers.image.documentation=https://github.com/dodevops/cloudcontrol
34+
LABEL org.opencontainers.image.source=https://github.com/dodevops/cloudcontrol
35+
LABEL org.opencontainers.image.title="cloudcontrol-{{FLAVOUR}}"
36+
LABEL org.opencontainers.image.url=https://github.com/dodevops/cloudcontrol
37+
LABEL org.opencontainers.image.vendor="DO! DevOps"

0 commit comments

Comments
 (0)