Skip to content

Commit 0794d42

Browse files
authored
Merge pull request #641 from lunatech-labs/update-postgres-build-instructions
Update instructions on how to build the local postgres image
2 parents 19b9f78 + 0069b10 commit 0794d42

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Contributing
22

33
Everyone is welcome to contribute to the application or make suggestions, but you may want to check first with the
4-
project contact person Leonor Boga @LeonorLunatech.
4+
project contact person Leonor Boga @leo-bogastry.
55

66
# Setup development environment
77

88
In order to be able to run the lunatech-chef locally you need to have the following installed in your local machine:
99

10-
- [JDK 11](https://sdkman.io/install)
10+
- [JDK 17](https://sdkman.io/install)
1111
- [Gradle](https://gradle.org/install)
1212
- [Npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
1313
- [Docker](https://www.docker.com/products/docker-desktop/)
@@ -28,13 +28,13 @@ already.
2828
Build to the docker image:
2929

3030
```commandline
31-
docker build -t lunatech-chef-api dockerdev/postgres/.
31+
postman build -t lunatech-chef-api dockerdev/postgres/.
3232
```
3333

3434
Run the docker image:
3535

3636
```commandline
37-
docker run -it -m 1024m --env POSTGRES_HOST_AUTH_METHOD=trust --name postgres -p 5432:5432 lunatech-chef-api -c log_statement=all
37+
postman run -it -m 1024m --env POSTGRES_HOST_AUTH_METHOD=trust --name postgres -p 5432:5432 lunatech-chef-api -c log_statement=all
3838
```
3939

4040
## Setup environment variables

dockerdev/postgres/README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
To create docker image:
2-
docker build -t lunatech-chef-api .
1+
To create the docker image:
32

4-
To run docker image:
5-
docker run -it -m 1024m --env POSTGRES_HOST_AUTH_METHOD=trust --name chef-api -p 5432:5432 lunatech-chef-api -c log_statement=all
3+
```
4+
podman build -t lunatech-chef-api -f Dockerfile .
5+
```
6+
7+
To run docker the image:
8+
9+
```
10+
podman run -it -m 1024m --env POSTGRES_HOST_AUTH_METHOD=trust --name chef-api -p 5432:5432 lunatech-chef-api -c log_statement=all
11+
```
612

713
To run docker image and clean it on shutdown:
8-
docker run -it -rm -m 1024m --env POSTGRES_HOST_AUTH_METHOD=trust --name postgres -p 5432:5432 lunatech-chef-api -c log_statement=all
14+
15+
```
16+
podman run -it -rm -m 1024m --env POSTGRES_HOST_AUTH_METHOD=trust --name postgres -p 5432:5432 lunatech-chef-api -c log_statement=all
17+
```

0 commit comments

Comments
 (0)