Skip to content

Commit

Permalink
Merge pull request #173 from brown-ccv/updates-gdal-lfs
Browse files Browse the repository at this point in the history
Add GDAL and LFS to Docker Config
  • Loading branch information
cpaniaguam authored Mar 5, 2024
2 parents 4879f45 + 268377c commit e7f772d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile → .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ FROM python:3.11

# Update the system and install the packages
RUN apt-get update && apt-get install -y \
git-lfs \
openmpi-bin \
openmpi-doc \
libopenmpi-dev
libopenmpi-dev \
gdal-bin \
libgdal-dev


# Set the working directory to /app
WORKDIR /app
Expand All @@ -17,6 +21,6 @@ COPY . /app
RUN mkdir -p /app/output

# Install any needed packages specified in pyproject.toml
RUN pip install .
RUN pip install --editable ".[dev]"

CMD ["/bin/bash"]
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "Dockerfile"
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "cat /etc/os-release",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"
}

0 comments on commit e7f772d

Please sign in to comment.