Skip to content

Commit 6694479

Browse files
authored
Merge pull request #87 from NFDI4Chem/development
Development
2 parents ef7e427 + 8f125be commit 6694479

30 files changed

Lines changed: 2563 additions & 750 deletions

.github/workflows/dev-build.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# This worklflow will perform following actions when the code is pushed to development branch:
2+
# This worklflow will perform following actions when the code is pushed to the development branch:
33
# - Build the latest docker image in development which needs test to pass first.
44
# - Push the docker image to Docker Hub under namespace - nfdi4chem with tag:dev-latest.
55
#
@@ -16,7 +16,8 @@ on:
1616
env:
1717
DOCKER_HUB_USERNAME : ${{ secrets.DOCKER_USERNAME }}
1818
DOCKER_HUB_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
19-
REPOSITORY_NAME: nmrkit
19+
NMRKIT_REPOSITORY_NAME: nmrkit
20+
NMR_CLI_REPOSITORY_NAME: nmr-cli
2021
REPOSITORY_NAMESPACE: nfdi4chem
2122
RELEASE_TAG: dev-latest
2223

@@ -27,7 +28,7 @@ jobs:
2728
push_to_registry:
2829
name: Push Docker image to Docker Hub
2930
runs-on: ubuntu-latest
30-
needs: test_and_lint
31+
#needs: test_and_lint
3132
steps:
3233
- name: Check out the repo
3334
uses: actions/checkout@v3
@@ -38,14 +39,26 @@ jobs:
3839
username: ${{ env.DOCKER_HUB_USERNAME }}
3940
password: ${{ env.DOCKER_HUB_PASSWORD }}
4041

41-
- name: Build and push Docker image
42+
- name: Build and push nmrKit Docker image
4243
uses: docker/build-push-action@v4
4344
with:
4445
context: .
4546
file: ./Dockerfile
4647
push: true
4748
build-args: |
4849
RELEASE_VERSION=dev-latest
49-
tags: ${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:${{ env.RELEASE_TAG }}
50+
tags: ${{ env.REPOSITORY_NAMESPACE }}/${{ env.NMRKIT_REPOSITORY_NAME }}:${{ env.RELEASE_TAG }}
51+
username: ${{ env.DOCKER_HUB_USERNAME }}
52+
password: ${{ env.DOCKER_HUB_PASSWORD }}
53+
54+
- name: Build and push nmr-cli Docker image
55+
uses: docker/build-push-action@v4
56+
with:
57+
context: ./app/scripts/nmr-cli/
58+
file: ./app/scripts/nmr-cli/Dockerfile
59+
push: true
60+
build-args: |
61+
RELEASE_VERSION=dev-latest
62+
tags: ${{ env.REPOSITORY_NAMESPACE }}/${{ env.NMR_CLI_REPOSITORY_NAME }}:${{ env.RELEASE_TAG }}
5063
username: ${{ env.DOCKER_HUB_USERNAME }}
5164
password: ${{ env.DOCKER_HUB_PASSWORD }}

app/scripts/nmr-cli/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
build/

app/scripts/nmr-cli/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# build the image ` docker build --tag nmr-cli . `
22
# run the container ` docker run -it nmr-cli bash `
33

4-
FROM mcr.microsoft.com/playwright:v1.40.0-jammy
4+
FROM mcr.microsoft.com/playwright:v1.56.1-noble
55

66
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
77

8+
89
WORKDIR /app
910

1011
#ENV BASE_NMRIUM_URL=https://nmrium.nmrxiv.org/
1112
ENV BASE_NMRIUM_URL=https://nmriumdev.nmrxiv.org/
12-
13+
ENV NMR_PREDICTION_URL=https://nmrshiftdb.nmr.uni-koeln.de/NmrshiftdbServlet/nmrshiftdbaction/quickcheck
1314

1415
COPY package.json ./
1516
COPY package-lock.json ./
@@ -18,8 +19,11 @@ RUN npm install
1819

1920
COPY . ./
2021

22+
RUN npm run build
23+
2124
#install the nmr-cli as a global package
22-
# for example, nmr-cli -u https://cheminfo.github.io/bruker-data-test/data/zipped/aspirin-1h.zip
25+
# for example, nmr-cli parse-spectra -u https://cheminfo.github.io/bruker-data-test/data/zipped/aspirin-1h.zip
26+
# nmr-cli predict -n "1H" --id 1 --type "nmr;1H;1d" --shifts "1" --solvent "Dimethylsulphoxide-D6 (DMSO-D6, C2D6SO)" -m $"\n Ketcher 6122516162D 1 1.00000 0.00000 0\n\n 16 17 0 0 0 0 0 0 0 0999 V2000\n 1.1954 -4.6484 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 2.9258 -4.6479 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 2.0622 -4.1483 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 2.9258 -5.6488 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 1.1954 -5.6533 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 2.0644 -6.1483 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 3.7902 -4.1495 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0\n 4.6574 -4.6498 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 3.7964 -6.1512 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0\n 4.6596 -5.6458 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 5.5228 -4.1488 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 5.5277 -6.1421 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0\n 6.3895 -4.6477 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0\n 5.5216 -3.1488 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0\n 7.2548 -4.1466 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 8.1215 -4.6455 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 3 1 2 0 0 0 0\n 1 5 1 0 0 0 0\n 5 6 2 0 0 0 0\n 6 4 1 0 0 0 0\n 4 2 1 0 0 0 0\n 2 3 1 0 0 0 0\n 4 9 1 0 0 0 0\n 9 10 2 0 0 0 0\n 10 8 1 0 0 0 0\n 8 7 2 0 0 0 0\n 7 2 1 0 0 0 0\n 8 11 1 0 0 0 0\n 10 12 1 0 0 0 0\n 11 13 1 0 0 0 0\n 11 14 2 0 0 0 0\n 13 15 1 0 0 0 0\n 15 16 1 0 0 0 0\nM END"
2327
RUN npm install . -g
2428

2529

app/scripts/nmr-cli/bin/index.js

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)