Skip to content

Commit

Permalink
feat(cloud): build a docker image for jupyterlab
Browse files Browse the repository at this point in the history
  • Loading branch information
machow committed Sep 28, 2021
1 parent 2c9026a commit e80e25b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build docker image

on:
push:
release:
types: [ published ]

jobs:
build_push:
name: Package docker image
runs-on: ubuntu-18.04
steps:
#- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/${{github.repository}}:${{ github.event.release.tag_name }}
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM jupyter/datascience-notebook

RUN pip install \
git+https://github.com/machow/siuba.git@stable \
calitp==0.0.4
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3.8'

services:

jupyter:
build: .
ports:
- 8999:8888

0 comments on commit e80e25b

Please sign in to comment.