Skip to content

Commit 9e87c3d

Browse files
authored
Use the new command to build plugin (#44)
1 parent 1415921 commit 9e87c3d

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: chmod +x gradlew
3535

3636
- name: Build plugins
37-
run: make buildPlugins
37+
run: make assemble
3838

3939
- name: Run tests
4040
run: make test

docker/nf-snowflake/Dockerfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
FROM nextflow/nextflow:25.04.6
22

33
# Define version argument with default value
4-
ARG PLUGIN_VERSION=0.9.0
4+
ARG PLUGIN_VERSION=1.1.0
55

6-
# Create plugins directory
7-
RUN mkdir -p /.nextflow/plugins
8-
9-
# Copy the locally built plugin (recursively copy the entire directory)
10-
COPY build/plugins/nf-snowflake-${PLUGIN_VERSION}/ /.nextflow/plugins/nf-snowflake-${PLUGIN_VERSION}/
11-
12-
RUN yum install -y git tar
6+
# Install dependencies
7+
RUN yum install -y unzip git tar
138

9+
# Install Python dependencies
1410
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
1511
python3 get-pip.py && \
1612
rm get-pip.py && \
1713
pip install aiohttp
1814

1915
COPY docker/nf-snowflake/pty_server.py /app/pty_server.py
2016

17+
# Create plugins directory
18+
RUN mkdir -p /.nextflow/plugins
19+
20+
# Copy the plugin distribution zip and extract it
21+
COPY build/distributions/nf-snowflake-${PLUGIN_VERSION}.zip /tmp/
22+
RUN unzip /tmp/nf-snowflake-${PLUGIN_VERSION}.zip -d /.nextflow/plugins/nf-snowflake-${PLUGIN_VERSION}/ && \
23+
rm /tmp/nf-snowflake-${PLUGIN_VERSION}.zip
24+
2125
# Set working directory
2226
WORKDIR /workspace

0 commit comments

Comments
 (0)