Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot run docker container #24

Closed
tomkralidis opened this issue Jul 13, 2022 · 7 comments · Fixed by #34
Closed

cannot run docker container #24

tomkralidis opened this issue Jul 13, 2022 · 7 comments · Fixed by #34
Assignees
Projects
Milestone

Comments

@tomkralidis
Copy link

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 dstenger self-assigned this Jul 13, 2022
@dstenger dstenger added this to To do in CITE via automation Jul 13, 2022
@dstenger dstenger moved this from To do to In progress in CITE Jul 13, 2022
@dstenger
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

dstenger commented Jul 13, 2022

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
Copy link
Contributor

gfenoy commented Jul 13, 2022

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
Copy link
Author

Still does not work.

@gfenoy
Copy link
Contributor

gfenoy commented Jul 13, 2022

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
Copy link
Author

Thanks @gfenoy, the following worked:

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

So +1 to update the README.

gfenoy added a commit to GeoLabs/ets-ogcapi-processes10 that referenced this issue Jul 13, 2022
@gfenoy gfenoy mentioned this issue Jul 13, 2022
@dstenger dstenger moved this from In progress to To do in CITE Jul 13, 2022
ghobona added a commit that referenced this issue Jan 24, 2023
CITE automation moved this from To do to Done Jan 24, 2023
@ghobona ghobona added this to the 0.4 milestone May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment