-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e26999c
commit a7e9001
Showing
36 changed files
with
951 additions
and
183 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 |
---|---|---|
|
@@ -20,7 +20,26 @@ Portainer to manage Docker | |
|
||
traefik routes requests to containers | ||
|
||
--- | ||
|
||
## Rollout 2/ | ||
|
||
Use SSH to login to you VM | ||
|
||
```bash | ||
ssh [email protected] | ||
``` | ||
|
||
Clone repository with slides and demos | ||
|
||
```bash | ||
git clone https://github.com/nicholasdille/container-slides | ||
``` | ||
|
||
Deploy stack | ||
|
||
```bash | ||
cd container-slides/160_gitlab_ci/000_rollout | ||
docker compose \ | ||
--project-name gitlab \ | ||
up -d | ||
|
@@ -30,7 +49,7 @@ Go to https://seatN.inmylab.de where seatN matches your subdomain | |
|
||
--- | ||
|
||
## Rollout 2/ | ||
## Rollout 3/ | ||
|
||
Wait for GitLab to be available (status is `running (healthy)`): | ||
|
||
|
@@ -53,7 +72,7 @@ Login to GitLab | |
|
||
--- | ||
|
||
## Rollout step 3/3 | ||
## Rollout step 4/4 | ||
|
||
Connect GitLab runner | ||
|
||
|
@@ -91,9 +110,9 @@ Containers are based on `alpine` by default | |
|
||
--- | ||
|
||
## Visual Studio Code | ||
## IDE | ||
|
||
XXX | ||
Use the web-based Visual Studio Code | ||
|
||
1. Go to https://vscode.seatN.inmylab.de | ||
1. Authenticate using the user seat and your personal password | ||
|
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
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,58 @@ | ||
stages: | ||
- check | ||
- build | ||
- test | ||
- deploy | ||
- trigger | ||
|
||
default: | ||
image: golang:1.17.9 | ||
|
||
lint: | ||
stage: check | ||
script: | ||
- go fmt . | ||
|
||
audit: | ||
stage: check | ||
script: | ||
- go vet . | ||
|
||
build: | ||
stage: build | ||
script: | ||
- | | ||
go build \ | ||
-ldflags "-X main.Version=${CI_COMMIT_REF_NAME} -X 'main.Author=${AUTHOR}'" \ | ||
-o hello \ | ||
. | ||
artifacts: | ||
paths: | ||
- hello | ||
|
||
test: | ||
stage: test | ||
image: alpine | ||
script: | ||
- ./hello | ||
|
||
deploy: | ||
stage: deploy | ||
environment: | ||
name: ${CI_COMMIT_REF_NAME} | ||
before_script: | ||
- apt-get update | ||
- apt-get -y install curl ca-certificates | ||
script: | ||
- | | ||
curl https://${CI_COMMIT_REF_NAME}.seat${SEAT_INDEX}.inmylab.de/ \ | ||
--fail \ | ||
--verbose \ | ||
--upload-file hello \ | ||
--user admin:${PASS} | ||
trigger: | ||
stage: trigger | ||
trigger: | ||
project: <GROUP>/<PROJECT> | ||
branch: <BRANCH> |
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,41 @@ | ||
stages: | ||
- check | ||
- build | ||
- test | ||
- trigger | ||
|
||
default: | ||
image: golang:1.17.9 | ||
|
||
lint: | ||
stage: check | ||
script: | ||
- go fmt . | ||
|
||
audit: | ||
stage: check | ||
script: | ||
- go vet . | ||
|
||
build: | ||
stage: build | ||
script: | ||
- | | ||
go build \ | ||
-ldflags "-X main.Version=${CI_COMMIT_REF_NAME} -X main.Author=${AUTHOR}" \ | ||
-o hello \ | ||
. | ||
artifacts: | ||
paths: | ||
- hello | ||
|
||
test: | ||
stage: test | ||
image: alpine | ||
script: | ||
- ./hello | ||
|
||
trigger: | ||
stage: trigger | ||
trigger: | ||
include: child.yml |
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 @@ | ||
test: | ||
script: | ||
- printenv | sort |
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
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
Oops, something went wrong.