-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
305 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
FROM node:16-alpine as intermediate | ||
RUN set -eux; \ | ||
apk update && apk upgrade && \ | ||
apk add --update --no-cache git bash curl python3 zip perl rsync \ | ||
&& rm -rf /var/cache/apk/* | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
RUN git submodule update --init --recursive client/zotero-build | ||
RUN git submodule update --init --recursive client/zotero-standalone-build | ||
RUN git submodule update --init --recursive client/zotero-client | ||
WORKDIR /usr/src/app/client/ | ||
RUN set -eux; \ | ||
./config.sh | ||
WORKDIR /usr/src/app/client/zotero-client | ||
RUN set -eux; \ | ||
npx browserslist@latest --update-db | ||
RUN set -eux; \ | ||
npm install | ||
RUN set -eux; \ | ||
npm run build | ||
WORKDIR /usr/src/app/client/zotero-standalone-build | ||
RUN set -eux; \ | ||
/bin/bash -c './fetch_xulrunner.sh -p l' | ||
RUN set -eux; \ | ||
./fetch_pdftools | ||
RUN set -eux; \ | ||
./scripts/dir_build -p l | ||
|
||
FROM scratch AS export-stage | ||
COPY --from=intermediate /usr/src/app/client/zotero-standalone-build/staging . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
clinet/zotero-clinet/.DS_Store | ||
clinet/zotero-clinet/node_modules | ||
clinet/zotero-clinet/build | ||
clinet/zotero-clinet/.signatures.json | ||
clinet/zotero-clinet/tmp | ||
clinet/zotero-build/config.sh | ||
clinet/zotero-build/node_modules | ||
clinet/zotero-standalone-build/*~ | ||
clinet/zotero-standalone-build/cache | ||
clinet/zotero-standalone-build/config-custom.sh | ||
clinet/zotero-standalone-build/dist | ||
clinet/zotero-standalone-build/staging | ||
clinet/zotero-standalone-build/xulrunner | ||
clinet/zotero-standalone-build/pdftools | ||
.github | ||
bin | ||
build | ||
dataserver | ||
doc | ||
docker | ||
stream-server | ||
tinymce-clean-server | ||
Zend | ||
docker-compose.yml | ||
*.Dockerfile | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule zotero-build
updated
3 files
+2 −2 | locale/localizer | |
+1 −0 | locale/merge_mozilla_files | |
+1 −1 | xpi/zotero-transfw |
Submodule zotero-client
updated
22 files
Submodule zotero-standalone-build
updated
2 files
+1 −1 | modules/zotero-word-for-mac-integration | |
+1 −1 | modules/zotero-word-for-windows-integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
FROM node:16-alpine as intermediate | ||
|
||
RUN set -eux; \ | ||
apk update && apk upgrade && \ | ||
apk add --update --no-cache git bash curl python3 zip perl rsync \ | ||
&& rm -rf /var/cache/apk/* | ||
WORKDIR /usr/src/app | ||
RUN mkdir client | ||
RUN cd client | ||
RUN git init | ||
RUN git remote add -f origin https://github.com/uniuuu/zotprime | ||
RUN echo "client/" >> .git/info/sparse-checkout | ||
RUN git pull origin new_dev | ||
RUN git submodule update --init --recursive | ||
WORKDIR /usr/src/app/client/ | ||
RUN set -eux; \ | ||
./config.sh | ||
WORKDIR /usr/src/app/client/zotero-client | ||
RUN set -eux; \ | ||
npx browserslist@latest --update-db | ||
RUN set -eux; \ | ||
npm install | ||
RUN set -eux; \ | ||
npm run build | ||
WORKDIR /usr/src/app/client/zotero-standalone-build | ||
RUN set -eux; \ | ||
./fetch_xulrunner.sh -p l | ||
RUN set -eux; \ | ||
./fetch_pdftools | ||
RUN set -eux; \ | ||
./scripts/dir_build -p l | ||
|
||
|
||
FROM scratch AS export-stage | ||
COPY --from=intermediate /usr/src/app/client/zotero-standalone-build/staging/* . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.github | ||
bin | ||
build | ||
dataserver | ||
doc | ||
docker | ||
stream-server | ||
tinymce-clean-server | ||
Zend | ||
docker-compose.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
set -xue | ||
|
||
for i in db-updates/*/; do | ||
cd /var/www/zotero/misc/$i | ||
for j in *; do | ||
find . -type f \( ! -name *.sql \) -exec php {} \; | ||
find . -type f -name *.sql -exec bash -c 'mysql -h mysql -P 3306 -u root -pzotero zotero_master < {}' \; | ||
done | ||
done; | ||
cd ../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.