opengeospatial / ets-ogcapi-processes10

Other
3 stars 3 forks source link

cannot run docker container #24

Closed tomkralidis closed 1 year ago

tomkralidis commented 2 years ago

Describe the bug When trying to run the docker container locally as per the README, the following issues are encountered:

To Reproduce

mkdir CITE
cd CITE
git clone https://github.com/opengeospatial/teamengine src
git clone https://github.com/opengeospatial/ets-common.git src1
cd src1
git clone -b testbed17 https://github.com/GeoLabs/ets-ogcapi-processes10.git
cd ..
# Build the docker image
docker build . -t teamengine/ogcapi-processes:latest
[+] Building 0.1s (1/2)                                                                                                                                                                                     
 => [internal] load build definition from Dockerfile                                                                                                                                                   0.0s
 => => transferring dockerfile: 2B                                                                                                                                                                     0.0s
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount538289897/Dockerfile: no such file or directory

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

dstenger commented 2 years ago

Thank you for reporting.

Indeed, this section of the README seems to be outdated.

Please see following manual how to build the Docker Image: https://github.com/opengeospatial/cite/wiki/How-to-create-Docker-Images-of-test-suites#create-docker-image-and-create-and-start-docker-container

tomkralidis commented 2 years ago

Thanks. Rather than building locally, is the image on DockerHub (https://hub.docker.com/r/ogccite/ets-ogcapi-processes10) up to date (thus running with docker run -p 8081:8080 ogccite/ets-ogcapi-processes10)?

dstenger commented 2 years ago

No, Docker Hub just contains the latest release (0.2 in this case) which is one month old. Currently, this is the same status as the master branch. However, as soon as there will be new content on master branch, the tag on Docker Hub will be outdated (till next release is created).

gfenoy commented 2 years ago

In case you replace the command below:

git clone -b testbed17 https://github.com/GeoLabs/ets-ogcapi-processes10.git

With the following one:

git clone https://github.com/opengeospatial/ets-ogcapi-processes10.git

The procedure should work. Can you please confirm?

tomkralidis commented 2 years ago

Still does not work.

gfenoy commented 2 years ago

Copy the Dockerfile located in src1/ets-ogcapi-processes10 in your current directory then run the docker build command or, use the following command for building the docker image:

docker build -f src1/ets-ogcapi-processes10/Dockerfile . -t teamengine/ogcapi-processes:latest
tomkralidis commented 2 years ago

Thanks @gfenoy, the following worked:

docker build -f src1/ets-ogcapi-processes10/Dockerfile . -t teamengine/ogcapi-processes:latest

So +1 to update the README.