Skip to content

Commit

Permalink
update demo docker compose project
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Nov 15, 2022
1 parent 6fbf8c3 commit 642abae
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 50 deletions.
3 changes: 3 additions & 0 deletions test/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:latest

COPY . /app
25 changes: 25 additions & 0 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: "3.5"
services:
my-service:
build:
dockerfile: Dockerfile
context: .
command: /app/print-random-stuff.sh
depends_on:
- my-service2
ports:
- 123:321

my-service2:
build:
dockerfile: Dockerfile
context: .
command: /app/print-random-stuff.sh
ports:
- 12345:12345

my-service3:
build:
dockerfile: Dockerfile
context: .
command: /app/print-random-stuff.sh
7 changes: 7 additions & 0 deletions test/print-random-stuff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

while true
do
echo $((1 + $RANDOM % 10))
sleep 1
done
24 changes: 0 additions & 24 deletions test/printrandom/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions test/printrandom/main.go

This file was deleted.

Binary file removed test/printrandom/printrandom
Binary file not shown.

0 comments on commit 642abae

Please sign in to comment.