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

Dockerize FastAPI #35

Merged
merged 23 commits into from
Oct 21, 2024
Merged

Dockerize FastAPI #35

merged 23 commits into from
Oct 21, 2024

Conversation

chkim-usgs
Copy link
Collaborator

Currently, the Dockerfile copies over the SpiceQL/ dir you run the Dockerfile in into the image and spins up the FastAPI.
Changes to be made:

  • Change COPY repo to a git clone (pinned, not main branch)
  • FastAPI calls results in a connection timed out error, added an nginx.conf to rectify that

Helpful commands:

  • Build image: docker build --platform linux/amd64 -t fastapi-image . --progress plain --no-cache
  • Create/run container with image: docker run -it --name fastapi --mount type=bind,source=</path/to/local/isis_data>,target=/mnt/isis_data fastapi-image
  • Exec into container: docker exec -it fastapi bash

@Kelvinrr
Copy link
Collaborator

if we get passing tests for this, let's merge it

@chkim-usgs chkim-usgs merged commit 4104331 into DOI-USGS:main Oct 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants