File tree 4 files changed +69
-0
lines changed
repositories/ici-uploader/4.0.3
4 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:3
2
+
3
+ # ARGS
4
+ # Target platform (linux/amd64, linux/arm64)
5
+ ARG TARGETPLATFORM
6
+
7
+ # For the ici-uploader
8
+ ARG ICI_HOME="/usr/local/bin/share/ici-uploader"
9
+
10
+ # User args (we run from a non-root user)
11
+ ARG USER="ici_user"
12
+ ARG UID=1000
13
+ ARG GID=1000
14
+ ARG GROUP="ici_user"
15
+
16
+ # ENV
17
+ ENV ICI_HOME="${ICI_HOME}"
18
+
19
+ # RUN
20
+ # Install Java
21
+ RUN apk update && \
22
+ apk add \
23
+ openjdk11 \
24
+ tar \
25
+ bash && \
26
+ mkdir -p "${ICI_HOME}"
27
+
28
+ # Add and extract tarball
29
+ ADD "ici-uploader.${TARGETPLATFORM#linux/}.tar.gz" "${ICI_HOME%ici-uploader}"
30
+ ADD "ici-uploader.sh" "/usr/local/bin/ici-uploader"
31
+
32
+ # Change permissions
33
+ RUN chmod a+r "${ICI_HOME}/" && \
34
+ chmod a+x "${ICI_HOME}/ici-uploader" && \
35
+ chmod a+x "/usr/local/bin/ici-uploader"
36
+
37
+ # Add a non-root user
38
+ RUN addgroup \
39
+ --system \
40
+ --gid "${GID}" \
41
+ "${GROUP}" && \
42
+ adduser \
43
+ --system \
44
+ --disabled-password \
45
+ --ingroup "${GROUP}" \
46
+ --uid "${UID}" \
47
+ "$USER"
48
+
49
+ # Change ownership
50
+ USER "$USER"
51
+
52
+ # Add a softlink from the user home to the ici-uploader
53
+ RUN mkdir -p "/home/${USER}/.illumina/" && \
54
+ ln -s "${ICI_HOME}" "/home/${USER}/.illumina/ici-uploader"
55
+
56
+ CMD [ "ici-uploader" ]
Original file line number Diff line number Diff line change
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89b7e8633610a4fd2eb1a17b91f55371dc4a914764c6ff1ab997571021e449ff
3
+ size 92690120
Original file line number Diff line number Diff line change
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:883293b624a489a1e6161159d528d4431f93599b04d42864cb5f39b687bee1b9
3
+ size 92690108
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Start the daemon
4
+ " ${ICI_HOME} /ici-uploader" start-daemon 1> /dev/null 2>&1
5
+
6
+ # Run the ici-uploader command
7
+ " ${ICI_HOME} /ici-uploader" " ${@: 1} "
You can’t perform that action at this time.
0 commit comments