-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test balena push with docker-compose using symlinks
Change-type: patch See: https://www.flowdock.com/app/rulemotion/i-cli/threads/Yo53CeVqtfSoo4Dw_qO8B0ZD2Nu Signed-off-by: Thodoris Greasidis <[email protected]>
- Loading branch information
Showing
12 changed files
with
91 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
7 changes: 7 additions & 0 deletions
7
tests/test-data/projects/docker-compose/symbolic-links/.balena/balena.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,7 @@ | ||
build-variables: | ||
global: | ||
- MY_VAR_1=This is a variable | ||
- MY_VAR_2=Also a variable | ||
services: | ||
service1: | ||
- SERVICE1_VAR=This is a service specific variable |
3 changes: 3 additions & 0 deletions
3
tests/test-data/projects/docker-compose/symbolic-links/.dockerignore
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 @@ | ||
service1/test-ignore-from-actual-path.* | ||
service1-symlink/test-ignore-from-symlink-path.* | ||
**/.dockerignore |
16 changes: 16 additions & 0 deletions
16
tests/test-data/projects/docker-compose/symbolic-links/docker-compose.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,16 @@ | ||
version: '2' | ||
volumes: | ||
resin-data: | ||
services: | ||
service1: | ||
volumes: | ||
- 'resin-data:/data' | ||
build: ./service1-symlink | ||
service2: | ||
volumes: | ||
- 'resin-data:/data' | ||
build: | ||
context: ./service2 | ||
dockerfile: Dockerfile-alt | ||
args: | ||
- 'COMPOSE_ARG=an argument defined in the docker-compose.yml file' |
1 change: 1 addition & 0 deletions
1
tests/test-data/projects/docker-compose/symbolic-links/service1
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 @@ | ||
../symlink-fixtures/service1/ |
1 change: 1 addition & 0 deletions
1
tests/test-data/projects/docker-compose/symbolic-links/service2/.dockerignore
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 @@ | ||
**/file1.sh |
1 change: 1 addition & 0 deletions
1
tests/test-data/projects/docker-compose/symbolic-links/service2/Dockerfile-alt
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 @@ | ||
FROM busybox |
2 changes: 2 additions & 0 deletions
2
tests/test-data/projects/docker-compose/symbolic-links/service2/src/file1.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,2 @@ | ||
line1 | ||
line2 |
3 changes: 3 additions & 0 deletions
3
tests/test-data/projects/docker-compose/symlink-fixtures/service1/Dockerfile.template
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 @@ | ||
FROM balenalib/%%BALENA_MACHINE_NAME%%-alpine | ||
COPY ./file1.sh / | ||
CMD i=1; while :; do echo "service1 $i $(uname -a)"; sleep 10; i=$((i+1)); done |
2 changes: 2 additions & 0 deletions
2
tests/test-data/projects/docker-compose/symlink-fixtures/service1/file1.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,2 @@ | ||
line1 | ||
line2 |
1 change: 1 addition & 0 deletions
1
...t-data/projects/docker-compose/symlink-fixtures/service1/test-ignore-from-actual-path.txt
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 @@ | ||
test-ignore |
1 change: 1 addition & 0 deletions
1
...-data/projects/docker-compose/symlink-fixtures/service1/test-ignore-from-symlink-path.txt
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 @@ | ||
test-ignore |