Skip to content

Commit f733ac0

Browse files
committed
Update script and port mapping
1 parent 600dede commit f733ac0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Diff for: fig.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ app:
2323
- dbinit
2424
- db:mysql
2525
ports:
26-
- "8080"
26+
- "8080:8080"

Diff for: readme.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ Then run `fig ps` to find the app port.
1515
* `docker build -t javatest .`
1616
* `docker run -ti -P --rm --link mysql:mysql javatest`
1717

18+
## Update Procedure
19+
20+
* `docker run --link=dockersamplejavamysqltomcat_db_1:mysql --entrypoint="mysql" -v $(pwd):/host mysql:5.6.21 -u java --password=java --host=mysql javatest < update.sql`
1821
You should be able to access the app on http://<docker-host-ip>:<app-port>/dbtest

Diff for: update.sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
insert into testdata values(null, 'world', 7890);

0 commit comments

Comments
 (0)