-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile and instructions for vscode and google cloud (#58)
* add dockerfile * push ci file * fix dockerfile * modify dockerfile * push image to registery * fix syntax error * missing parenthesis * trigger pipeline * syntax error * trigger pipeline * fix tag * syntax error * use PR id number instead * fix registry name * visual studio config. * - add workaround for qiskit version number - create folder for mne_data - update README * comment docker login and docker push * edit readme * test modification of example to see if google cloud run it. * add home/mne_data for google cloud * Revert "test modification of example to see if google cloud run it." This reverts commit 0eae2bf. * Update README.md * Revert "Revert "test modification of example to see if google cloud run it."" This reverts commit 64c1e3a. * made another test with the example * Revert "Revert "Revert "test modification of example to see if google cloud run it.""" This reverts commit a970391. * reset modification to example * Update README.md Co-authored-by: gcattan <gregoire.cattan@ibm.com>
- Loading branch information
Showing
4 changed files
with
116 additions
and
0 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,18 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.191.0/containers/docker-existing-dockerfile | ||
{ | ||
"name": "Existing Dockerfile", | ||
|
||
"context": "..", | ||
|
||
"dockerFile": "../Dockerfile", | ||
|
||
"settings": {}, | ||
|
||
"extensions": [ | ||
], | ||
|
||
"mounts": [ | ||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" | ||
] | ||
} |
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,22 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
tag: ${{ github.event.pull_request.number }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build the Docker image | ||
run: | | ||
docker build . --file Dockerfile --tag ghcr.io/${{ github.actor }}/pyriemann-qiskit:$tag | ||
# docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} | ||
# docker push ghcr.io/${{ github.actor }}/pyriemann-qiskit:$tag |
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,25 @@ | ||
FROM python:3.8-slim-buster | ||
ADD pyriemann_qiskit /pyriemann_qiskit | ||
ADD examples /examples | ||
ADD setup.py / | ||
ADD README.md / | ||
|
||
RUN apt-get update | ||
RUN apt-get -y install git | ||
|
||
RUN apt-get --allow-releaseinfo-change update | ||
RUN python -m pip install --upgrade pip | ||
RUN apt-get -y install --fix-missing git-core | ||
RUN apt-get -y install build-essential | ||
|
||
RUN python setup.py develop | ||
RUN pip install .[docs] | ||
|
||
# WORKAROUNDS | ||
## Qiskit problem in parsing version number | ||
RUN echo 0.21.0 > /usr/local/lib/python3.8/site-packages/qiskit_terra-0.21.0rc1-py3.8-linux-x86_64.egg/qiskit/VERSION.txt | ||
## Creating folders for mne data | ||
RUN mkdir /root/mne_data | ||
RUN mkdir /home/mne_data | ||
|
||
ENTRYPOINT [ "python", "/examples/ERP/classify_P300_bi.py" ] |
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