Update README with the correct instruction to build and test the image. Remove unuseful files

This commit is contained in:
Antonio Calanducci 2023-09-25 16:26:24 +02:00
parent 8a9d8d95d8
commit 7b9132e69e
4 changed files with 5 additions and 38 deletions

View File

@ -1,15 +1,15 @@
# ansible-playbook-is-registry-service
# gCore Hosting Node (gHN) distribution Docker image
Playbook that creates a docker container with the IS distribution
The included Docker file will build a default image for the gHN distribution
## Build the imaage
## Build the image
```shell
$ docker build -t is-registry-service:v1-dev .
$ docker build -t ghn-distribution .
```
## Run the image
```shell
$ docker container run is-registry-service:v1-dev --name is-registry
$ docker container run --name gcore-hosting-node -p 8080:8080 ghn-distribution
```

View File

@ -1,13 +0,0 @@
version: '3.4'
services:
ansibleplaybookisregistryservice:
image: ansibleplaybookisregistryservice
build:
context: .
dockerfile: ./Dockerfile
environment:
JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
ports:
- 8080:8080
- 5005:5005

View File

@ -1,10 +0,0 @@
version: '3.4'
services:
ansibleplaybookisregistryservice:
image: ansibleplaybookisregistryservice
build:
context: .
dockerfile: ./Dockerfile
ports:
- 8080:8080

View File

@ -1,10 +0,0 @@
# Tips, links to the documentation
## Official documentation
<https://docs.docker.com>
<https://docs.docker.com/get-started/>
<https://docs.docker.com/develop/>
<https://docs.docker.com/develop/develop-images/dockerfile_best-practices/>
Some hints on how to debug a docker image: <http://www.openwebit.com/c/how-to-debug-docker-images/>