-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: docker-compose file decoding (#184)
* adjust snapshots... * fix: suport new docker-compose port format , add decode step and update to latest docker-compose file format * update snapshots
- Loading branch information
Showing
25 changed files
with
150 additions
and
44 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 |
---|---|---|
|
@@ -36,7 +36,7 @@ yarn add dockest --dev | |
```yml | ||
# docker-compose.yml | ||
|
||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
myRedis: | ||
|
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 |
---|---|---|
|
@@ -36,7 +36,7 @@ yarn add dockest --dev | |
```yml | ||
# docker-compose.yml | ||
|
||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
myRedis: | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ describe('getParsedComposeFile', () => { | |
], | ||
}, | ||
}, | ||
"version": "3.7", | ||
"version": "3.8", | ||
} | ||
`) | ||
}) | ||
|
77 changes: 72 additions & 5 deletions
77
packages/dockest/src/run/bootstrap/getParsedComposeFile.ts
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
5 changes: 2 additions & 3 deletions
5
packages/dockest/src/run/bootstrap/mergeComposeFiles.spec.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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
redis: | ||
image: redis:5.0.3-alpine | ||
ports: | ||
- published: 6379 | ||
target: 6379 | ||
- 6379:6379/tcp |
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,24 @@ | ||
FROM node:12-slim | ||
|
||
LABEL author="Laurin Quast <laurinquast@googlemail.com>" | ||
|
||
ENV DOCKER_COMPOSE_VERSION="1.27.4" | ||
ENV DOCKER_BUILD_X_VERSION="0.4.2" | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y python3 curl bash apt-transport-https ca-certificates software-properties-common gnupg2 jq \ | ||
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ | ||
&& python3 get-pip.py \ | ||
&& rm get-pip.py \ | ||
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \ | ||
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \ | ||
&& apt-get update \ | ||
&& apt-get install -y docker-ce docker-ce-cli containerd.io \ | ||
\ | ||
&& pip install "docker-compose==$DOCKER_COMPOSE_VERSION" \ | ||
&& docker-compose version \ | ||
\ | ||
&& mkdir -p ~/.docker/cli-plugins \ | ||
&& curl -fsSL "https://github.com/docker/buildx/releases/download/v$DOCKER_BUILD_X_VERSION/buildx-v$DOCKER_BUILD_X_VERSION.linux-amd64" --output ~/.docker/cli-plugins/docker-buildx \ | ||
&& chmod a+x ~/.docker/cli-plugins/docker-buildx && \ | ||
echo "done." |
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,4 +1,4 @@ | ||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
aws_codebuild_website: | ||
|
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,4 +1,4 @@ | ||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
docker_in_docker_website: | ||
|
2 changes: 1 addition & 1 deletion
2
packages/examples/multiple-compose-files/docker-compose-postgres.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
multiple_compose_files_postgres: | ||
|
2 changes: 1 addition & 1 deletion
2
packages/examples/multiple-compose-files/docker-compose-redis.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
multiple_compose_files_redis: | ||
|
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,4 +1,4 @@ | ||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
multiple_resources_postgres1sequelize: | ||
|
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,4 +1,4 @@ | ||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
node_to_node_orders: | ||
|
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.