Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

Commit f12f56e

Browse files
committed
Example spring-boot - Fixed current working directory function
- Example used os.getcwd(), but this does not work correctly with the Docker isntallation method - Therefore changed to own function getcwd which falls back to os.getcwd()
1 parent 61cf46b commit f12f56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/java/spring-boot/pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ def up(exec, *args, **kwargs):
3232
depends(down, ifTrue=isContainerRunningWithId(id="spring-example"))
3333
exec("""
3434
35-
docker run -d --name spring-example -v """ + os.getcwd() + """:/usr/src/myapp -w /usr/src/myapp -p 8080:8080 java:8 java -jar ./target/gs-spring-boot-0.1.0.jar
35+
docker run -d --name spring-example -v """ + getcwd() + """:/usr/src/myapp -w /usr/src/myapp -p 8080:8080 java:8 java -jar ./target/gs-spring-boot-0.1.0.jar
3636
3737
""", shell="sh")

0 commit comments

Comments
 (0)