Skip to content

Commit 8346df4

Browse files
committed
Merge branch 'release/0.119.0'
2 parents 968bac8 + 9064574 commit 8346df4

File tree

305 files changed

+9533
-8156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+9533
-8156
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ logs/*
148148
src/
149149
website/mfrtemp/
150150
docs/_build
151-
website/static/img/badges
152151

153152
# Scripts
154153
scripts/guid_blacklist.txt

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
optional = false

CHANGELOG

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22
Changelog
33
*********
44

5+
0.119.0 (2017-08-10)
6+
====================
7+
8+
- Add Bitbucket addon.
9+
- Prevent UnorderedObjectListWarning in API
10+
- Prevent invalid social fields from being passed to user endpoints.
11+
- Admin: Fix importing preprint providers on production
12+
- Remove "Watch project" code
13+
- Make ever_mentioned a ManyToMany field
14+
- Remove unused mongo code in framework.mongo
15+
- Reduce number of queries made by triggered mails script
16+
- Add a context manager to prevent auto_now fields from from getting updated during migrations
17+
- Remove model name aliasing in imports
18+
- Remove dead badges code
19+
- Add view OSF Subjects Permissions
20+
- Upgrade to Node.js 8
21+
- Checkouts and is_preprint checks need optimizing
22+
- Expand functionality of maintenance notice to allow custom message and severity level
23+
- Test optimizations
24+
- Add preprint_word field to preprint provider endpoints
25+
- Add event tracking to navbar
26+
527
0.118.0 (2017-08-03)
628
====================
729

Dockerfile

Lines changed: 61 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN apt-get update \
1313
libxml2-dev \
1414
libxslt1-dev \
1515
zlib1g-dev \
16+
curl \
1617
# matplotlib
1718
libfreetype6-dev \
1819
libxft-dev \
@@ -34,38 +35,68 @@ RUN apt-get update \
3435
# grab gosu for easy step-down from root
3536
ENV GOSU_VERSION 1.4
3637
RUN apt-get update \
37-
&& apt-get install -y \
38-
curl \
3938
&& gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
4039
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
4140
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
4241
&& gpg --verify /usr/local/bin/gosu.asc \
4342
&& rm /usr/local/bin/gosu.asc \
4443
&& chmod +x /usr/local/bin/gosu \
4544
&& apt-get clean \
46-
&& apt-get autoremove -y \
47-
curl \
4845
&& rm -rf /var/lib/apt/lists/*
4946

50-
# Node : https://registry.hub.docker.com/u/library/node/
51-
ENV NODE_VERSION 0.12.4
52-
ENV NPM_VERSION 2.10.1
53-
RUN apt-get update \
54-
&& apt-get install -y \
55-
curl \
56-
&& gpg --keyserver pool.sks-keyservers.net --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D 114F43EE0176B71C7BC219DD50A3051F888C628D \
57-
&& curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \
58-
&& curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
59-
&& gpg --verify SHASUMS256.txt.asc \
60-
&& grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c - \
61-
&& tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \
62-
&& rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \
63-
&& npm install -g npm@"$NPM_VERSION" \
64-
&& npm cache clear \
65-
&& apt-get clean \
66-
&& apt-get autoremove -y \
67-
curl \
68-
&& rm -rf /var/lib/apt/lists/*
47+
# https://github.com/nodejs/docker-node/blob/9c25cbe93f9108fd1e506d14228afe4a3d04108f/8.2/Dockerfile
48+
# gpg keys listed at https://github.com/nodejs/node#release-team
49+
RUN set -ex \
50+
&& for key in \
51+
9554F04D7259F04124DE6B476D5A82AC7E37093B \
52+
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
53+
FD3A5288F042B6850C66B31F09FE44734EB7990E \
54+
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
55+
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
56+
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
57+
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
58+
56730D5401028683275BD23C23EFEFE93C4CFFFE \
59+
; do \
60+
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
61+
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
62+
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
63+
done
64+
65+
ENV NPM_CONFIG_LOGLEVEL info
66+
ENV NODE_VERSION 8.2.1
67+
68+
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
69+
&& case "${dpkgArch##*-}" in \
70+
amd64) ARCH='x64';; \
71+
ppc64el) ARCH='ppc64le';; \
72+
*) echo "unsupported architecture"; exit 1 ;; \
73+
esac \
74+
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \
75+
&& curl -SLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
76+
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
77+
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
78+
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 \
79+
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
80+
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
81+
82+
ENV YARN_VERSION 0.27.5
83+
84+
RUN set -ex \
85+
&& for key in \
86+
6A010C5166006599AA17F08146C2130DFD2497F5 \
87+
; do \
88+
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
89+
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
90+
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
91+
done \
92+
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
93+
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
94+
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
95+
&& mkdir -p /opt/yarn \
96+
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
97+
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
98+
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
99+
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
69100

70101
RUN mkdir -p /code
71102
WORKDIR /code
@@ -75,6 +106,7 @@ RUN pip install -U pip
75106
COPY ./requirements.txt /code/
76107
COPY ./requirements/ /code/requirements/
77108

109+
COPY ./addons/bitbucket/requirements.txt /code/addons/bitbucket/
78110
COPY ./addons/box/requirements.txt /code/addons/box/
79111
COPY ./addons/dataverse/requirements.txt /code/addons/dataverse/
80112
COPY ./addons/dropbox/requirements.txt /code/addons/dropbox/
@@ -89,6 +121,7 @@ RUN pip install --no-cache-dir -c /code/requirements/constraints.txt -r /code/re
89121
&& pip install --no-cache-dir -c /code/requirements/constraints.txt -r /code/requirements/release.txt
90122

91123
RUN pip install --no-cache-dir -c /code/requirements/constraints.txt -r /code/addons/box/requirements.txt \
124+
&& pip install --no-cache-dir -c /code/requirements/constraints.txt -r /code/addons/bitbucket/requirements.txt \
92125
&& pip install --no-cache-dir -c /code/requirements/constraints.txt -r /code/addons/dataverse/requirements.txt \
93126
&& pip install --no-cache-dir -c /code/requirements/constraints.txt -r /code/addons/dropbox/requirements.txt \
94127
&& pip install --no-cache-dir -c /code/requirements/constraints.txt -r /code/addons/github/requirements.txt \
@@ -111,7 +144,7 @@ RUN npm install bower \
111144
&& ./node_modules/bower/bin/bower install --allow-root \
112145
&& ./node_modules/bower/bin/bower cache clean --allow-root
113146

114-
COPY ./package.json /code/
147+
COPY ./package.json ./.npmrc /code/
115148
RUN npm install --production
116149

117150
COPY ./tasks /code/tasks
@@ -125,6 +158,7 @@ RUN mv /code/website/settings/local-dist.py /code/website/settings/local.py \
125158

126159
COPY ./webpack* /code/
127160
COPY ./website/static /code/website/static/
161+
COPY ./addons/bitbucket/static/ /code/addons/bitbucket/static/
128162
COPY ./addons/box/static/ /code/addons/box/static/
129163
COPY ./addons/citations/static/ /code/addons/citations/static/
130164
COPY ./addons/dataverse/static/ /code/addons/dataverse/static/
@@ -144,9 +178,9 @@ RUN mkdir -p /code/website/static/built/ \
144178
&& invoke build_js_config_files \
145179
&& node ./node_modules/webpack/bin/webpack.js --config webpack.prod.config.js \
146180
# && rm -rf /code/node_modules \ (needed for sharejs)
147-
&& npm install list-of-licenses \
181+
&& npm install @centerforopenscience/list-of-licenses \
148182
&& rm -rf /root/.npm \
149-
&& npm cache clean
183+
&& npm cache clean --force
150184
# /OSF: Assets
151185

152186
# Admin: Assets
@@ -167,7 +201,7 @@ COPY ./admin/static /code/admin/static/
167201

168202
RUN node ./node_modules/webpack/bin/webpack.js --config webpack.prod.config.js \
169203
&& rm -rf /root/.npm \
170-
&& npm cache clean
204+
&& npm cache clean --force
171205

172206
WORKDIR /code
173207
# /Admin: Assets

0 commit comments

Comments
 (0)