Skip to content

Commit 95a69ce

Browse files
authored
Merge pull request #277 from Donders-Institute/new-core-api
New core api
2 parents c5c095d + 8a6f49b commit 95a69ce

File tree

5 files changed

+21
-16
lines changed

5 files changed

+21
-16
lines changed

streamer-ui/DEV.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ In addition, `errorState` is used to capture any exception that might occur. An
114114

115115
After the user has selected files, he/she selects the appropriate project, sets the subject label and session label, and selects the data type. If the data type is not in the list of allowed data types, the user can select "other" and set this value.
116116

117-
When satisfied, the upload button can be pressed and an upload session is inititated. The upload modal is shown with the upload progress. After the initiating stage, each file that is to be uploaded is validated. Might any of the files already exist in the destination folder, then the user is prompted with a confirmation modal. If the user approves and presses the OK button, the actual upload is started. The files are transferred to the streamer UI buffer directory. When this operation was successful, the upload session is finalized.
117+
When satisfied, the upload button can be pressed and an upload session is initiated. The upload modal is shown with the upload progress. After the initiating stage, each file that is to be uploaded is validated. Might any of the files already exist in the destination folder, then the user is prompted with a confirmation modal. If the user approves and presses the OK button, the actual upload is started. The files are transferred to the streamer UI buffer directory. When this operation was successful, the upload session is finalized.
118118

119119
A submit request is sent to the `service` which queues a streamer job. After some delay, an e-mail will be sent to the user with the result.

streamer-ui/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN yarn build
1515
# Create the server
1616
FROM node:16
1717
ENV NODE_ENV production
18-
RUN apt-get update && apt-get install -y cron curl supervisor
18+
RUN ulimit -n 1024 && apt-get update && apt-get install -y cron curl supervisor
1919
WORKDIR /opt/streamer-ui-server
2020
COPY $pwd/packages/server/package.json ./
2121
COPY $pwd/packages/server/yarn.lock ./
@@ -36,4 +36,4 @@ RUN ( chmod +x start-cron.sh )
3636
COPY $pwd/packages/server/cron/crontab /etc/cron.d/purge-db
3737
RUN ( chmod +x /etc/cron.d/purge-db && crontab /etc/cron.d/purge-db )
3838
COPY --from=build /opt/streamer-ui-client/build /opt/streamer-ui-server/frontend
39-
CMD [ "/usr/bin/supervisord", "-c", "/opt/streamer-ui-server/supervisord.conf" ]
39+
CMD [ "/usr/bin/supervisord", "-c", "/opt/streamer-ui-server/supervisord.conf" ]

streamer-ui/packages/client/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8947,9 +8947,9 @@ [email protected]:
89478947
integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==
89488948

89498949
qs@~6.5.2:
8950-
version "6.5.2"
8951-
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
8952-
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==
8950+
version "6.5.3"
8951+
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad"
8952+
integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==
89538953

89548954
query-string@^4.1.0:
89558955
version "4.3.4"

streamer-ui/packages/server/routes/pdb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var _getProjectsV2 = function(req, res, next) {
3030
// GraphQL query to get user's projects
3131
const query = gql`
3232
query GetUser($username: ID!) {
33-
user(username: $username) {
33+
user(id: $username) {
3434
username
3535
projects {
3636
role

streamer/Dockerfile

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ LABEL donders.ru.nl.app_maintainer "[email protected]"
77
LABEL donders.ru.nl.app_code_repository "https://github.com/Donders-Institute/data-streamer"
88

99
# install required packages from YUM repository
10-
RUN ( yum -y install wget gcc gcc-c++ \
11-
make autoconf git zlib zlib-devel \
12-
openssl openssl-devel openssl-libs \
13-
sssd-client which rsync \
14-
curl curl-devel libxml2-devel epel-release \
10+
RUN ( ulimit -n 1024 && yum -y install wget gcc gcc-c++ \
11+
make autoconf git zlib zlib-devel \
12+
openssl openssl-devel openssl-libs \
13+
sssd-client which rsync \
14+
curl curl-devel libxml2-devel epel-release \
1515
&& yum clean all \
1616
&& rm -rf /var/cache/yum/* \
1717
&& rm -rf /tmp/* )
1818

19-
RUN ( yum -y install supervisor sshpass pv expect \
19+
RUN ( ulimit -n 1024 && yum -y install supervisor sshpass pv expect \
2020
&& yum clean all \
2121
&& rm -rf /var/cache/yum/* \
2222
&& rm -rf /tmp/* )
@@ -26,9 +26,14 @@ RUN ( mkdir -p /tmp )
2626
WORKDIR /tmp
2727

2828
# install nodejs
29-
ADD https://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-x64.tar.xz /tmp
30-
RUN ( if [ ! -d node-v8.12.0-linux-x64 ]; then tar xf node-v8.12.0-linux-x64.tar.xz; fi \
31-
&& mv node-v8.12.0-linux-x64 /opt/nodejs )
29+
#ADD https://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-x64.tar.xz /tmp
30+
#RUN ( if [ ! -d node-v8.12.0-linux-x64 ]; then tar xf node-v8.12.0-linux-x64.tar.xz; fi \
31+
# && mv node-v8.12.0-linux-x64 /opt/nodejs )
32+
33+
ADD https://nodejs.org/dist/latest-v10.x/node-v10.24.1-linux-x64.tar.xz /tmp
34+
35+
RUN ( if [ ! -d node-v10.24.1-linux-x64 ]; then tar xf node-v10.24.1-linux-x64.tar.xz; fi \
36+
&& mv node-v10.24.1-linux-x64 /opt/nodejs && rm -rf /tmp/node-*)
3237

3338
# install streamer package
3439
RUN ( mkdir -p /opt/streamer )

0 commit comments

Comments
 (0)