Skip to content

Commit 08510ae

Browse files
committed
restructure repo, separate sample app from docker configs
1 parent dd5d7bf commit 08510ae

58 files changed

Lines changed: 645 additions & 12 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎04-using-3rd-party-containers/README.md‎

Whitespace-only changes.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.PHONY: run-postgres
2+
run-postgres:
3+
@echo Starting postgres container
4+
-docker run \
5+
-e POSTGRES_PASSWORD=foobarbaz \
6+
-p 5432:5432 \
7+
postgres:15.1-alpine
8+
9+
.PHONY: run-api-node
10+
run-api-node:
11+
@echo Starting node api
12+
cd api-node && \
13+
PGUSER=postgres \
14+
PGHOST=localhost \
15+
PGPASSWORD=foobarbaz \
16+
PGDATABASE=postgres \
17+
PGPORT=5432 \
18+
npm run dev
19+
20+
.PHONY: run-api-golang
21+
run-api-golang:
22+
@echo Starting golang api
23+
cd api-golang && \
24+
DATABASE_URL=postgres://postgres:foobarbaz@localhost:5432/postgres \
25+
go run main.go
26+
27+
.PHONY: run-client-react
28+
run-client-react:
29+
@echo Starting react client
30+
cd client-react && \
31+
npm run dev
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Docker Desktop: https://docs.docker.com/get-docker/
2+
3+
Docker Engine: https://get.docker.com/
4+
5+
Hello World:
6+
```
7+
docker run docker/whalesay cowsay "Hey Team! 👋"
8+
```
9+
10+
Run Postgres:
11+
```
12+
docker run \
13+
--env POSTGRES_PASSWORD=foobarbaz \
14+
--publish 5432:5432 \
15+
postgres:15.1-alpine
16+
```

04-building-container-images/sample-app/api-golang/.dockerignore renamed to 05-example-web-application/api-golang/.dockerignore

File renamed without changes.
File renamed without changes.

04-building-container-images/sample-app/api-golang/README.md renamed to 05-example-web-application/api-golang/README.md

File renamed without changes.

04-building-container-images/sample-app/api-golang/database/db.go renamed to 05-example-web-application/api-golang/database/db.go

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)