-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build and publish docker images | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build_and_push_ubuntu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: mbari/pbp | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: docker/Dockerfile-minimal | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
build_and_push_macos_14: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: mbari/pbp | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: docker/Dockerfile-minimal | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM quay.io/jupyter/minimal-notebook:latest | ||
|
||
WORKDIR /opt/pbp | ||
|
||
# TODO both PyPAM and PBP should be installed from published packages. | ||
# For now, grabbing the latest from their repos. | ||
RUN git clone https://github.com/mbari-org/pypam-based-processing.git \ | ||
&& cd pypam-based-processing \ | ||
&& pip install -r requirements.txt \ | ||
&& pip install git+https://github.com/lifewatch/pypam.git | ||
|
||
USER root | ||
RUN apt-get update && apt-get install -y libsox-fmt-all libsox-dev | ||
RUN chown -R jovyan /opt/pbp | ||
USER jovyan | ||
|
||
ENV PYTHONPATH /opt/pbp:/opt/pbp/pypam-based-processing | ||
EXPOSE 8899 | ||
|
||
CMD ["/opt/conda/bin/jupyter", "notebook", "--notebook-dir=/opt/pbp", "--ip='*'","--port=8899","--no-browser", "--allow-root"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters