-
Notifications
You must be signed in to change notification settings - Fork 3
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 #334 from AmpersandTarski/feature/333-pipeline-doe…
…snt-run Feature/333 pipeline doesnt run
- Loading branch information
Showing
4 changed files
with
13 additions
and
7 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 |
---|---|---|
|
@@ -3,9 +3,9 @@ name: RAP pipeline | |
on: | ||
push: | ||
branches: | ||
- "main" | ||
- main | ||
paths: | ||
- "./RAP4/" | ||
- "RAP4/**" | ||
|
||
jobs: | ||
Staging: | ||
|
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 |
---|---|---|
@@ -1,22 +1,29 @@ | ||
|
||
## Build rap4-student-prototype image | ||
|
||
> `docker build -t ampersandtarski/rap4-student-prototype:<version here> .` | ||
## Opstarten container using rap4-student-prototype | ||
|
||
NOTE! Backticks need to be escaped when used in windows powershell. Therefore double backticks `` are used in command argument below. A single backtick is needed in the Host() argument. | ||
``` | ||
|
||
```txt | ||
cat test.adl | docker run --name student123 --rm -i -a stdin --network proxy -e AMPERSAND_DBHOST=db -e AMPERSAND_DBNAME=student123 -l traefik.enable=true -l traefik.http.routers.student123-insecure.rule="Host(``student123.rap.cs.ou.nl``) || Host(``student123.localhost``)" -l student-prototype rap4-student-prototype | ||
``` | ||
|
||
Also run the following command to attach the new container to the database network. Unfortunately we cannot attach to two networks in docker run command at the same time. | ||
``` | ||
|
||
```txt | ||
docker network connect rap_db student123 | ||
``` | ||
|
||
## Stop container for specific student | ||
|
||
If no container exists with name=student123, docker gives an error. This is not a problem. Just ignore. | ||
> `docker container stop $(docker container ls -q --filter name=student123)` | ||
or | ||
> `docker rm -f student123` | ||
## Stop student prototype containers | ||
|
||
> `docker container stop $(docker container ls -q --filter label=student-prototype)` |