commit
52df6234f0
@ -1,20 +1,49 @@
|
||||
FROM node:6-alpine
|
||||
# 6-stretch is the ONLY node 6 release supported by arm32v7, arm64v8 and x86-64 docker hub labels
|
||||
FROM node:6-stretch
|
||||
|
||||
COPY . /cryptpad
|
||||
WORKDIR /cryptpad
|
||||
|
||||
RUN apk add --no-cache git tini \
|
||||
&& npm install --production \
|
||||
&& npm install -g bower \
|
||||
&& bower install --allow-root
|
||||
|
||||
EXPOSE 3000 3001
|
||||
# You want USE_SSL=true if not putting cryptpad behind a proxy
|
||||
ENV USE_SSL=false
|
||||
ENV STORAGE=\'./storage/file\'
|
||||
ENV LOG_TO_STDOUT=true
|
||||
|
||||
# Persistent storage needs
|
||||
VOLUME /cryptpad/datastore
|
||||
VOLUME /cryptpad/customize
|
||||
VOLUME /cryptpad/blobstage
|
||||
VOLUME /cryptpad/pins
|
||||
VOLUME /cryptpad/tasks
|
||||
VOLUME /cryptpad/block
|
||||
|
||||
ENV USE_SSL=false
|
||||
ENV STORAGE=\'./storage/file\'
|
||||
ENV LOG_TO_STDOUT=true
|
||||
# Required packages
|
||||
# jq is a build only dependency, removed in cleanup stage
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
git jq python
|
||||
|
||||
# Install tini for faux init
|
||||
# sleep 1 is to ensure overlay2 can catch up with the copy prior to running chmod
|
||||
COPY ./docker-install-tini.sh /
|
||||
RUN chmod a+x /docker-install-tini.sh \
|
||||
&& sleep 1 \
|
||||
&& /docker-install-tini.sh \
|
||||
&& rm /docker-install-tini.sh
|
||||
|
||||
# Cleanup apt
|
||||
RUN apt-get remove -y --purge jq python \
|
||||
&& apt-get auto-remove -y \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install cryptpad
|
||||
COPY . /cryptpad
|
||||
WORKDIR /cryptpad
|
||||
RUN npm install --production \
|
||||
&& npm install -g bower \
|
||||
&& bower install --allow-root
|
||||
|
||||
# Unsafe / Safe ports
|
||||
EXPOSE 3000 3001
|
||||
|
||||
# Run cryptpad on startup
|
||||
CMD ["/sbin/tini", "--", "/cryptpad/container-start.sh"]
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
FROM arm64v8/node:6
|
||||
|
||||
COPY . /cryptpad
|
||||
WORKDIR /cryptpad
|
||||
|
||||
RUN npm config set unsafe-perm true
|
||||
|
||||
ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini-static-arm64 /sbin/tini
|
||||
RUN chmod a+x /sbin/tini
|
||||
|
||||
RUN apt install -y git \
|
||||
&& npm install --production \
|
||||
&& npm install -g bower \
|
||||
&& bower install --allow-root
|
||||
|
||||
EXPOSE 3000 3001
|
||||
|
||||
VOLUME /cryptpad/datastore
|
||||
VOLUME /cryptpad/customize
|
||||
|
||||
ENV USE_SSL=false
|
||||
ENV STORAGE=\'./storage/file\'
|
||||
ENV LOG_TO_STDOUT=true
|
||||
|
||||
CMD ["/sbin/tini", "--", "/cryptpad/container-start.sh"]
|
@ -0,0 +1,36 @@
|
||||
.cursor_main() {
|
||||
// CodeMirror
|
||||
.cp-codemirror-cursor {
|
||||
cursor: default;
|
||||
background-color: red;
|
||||
background-clip: padding-box;
|
||||
padding: 0 1px;
|
||||
border: 2px solid red;
|
||||
border-right-color: transparent !important;
|
||||
border-left-color: transparent !important;
|
||||
margin-left: -3px;
|
||||
margin-right: -3px;
|
||||
}
|
||||
.cp-codemirror-selection {
|
||||
background-color: rgba(255,0,0,0.3);
|
||||
}
|
||||
|
||||
// Tippy
|
||||
.cp-cursor-avatar {
|
||||
@size: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
media-tag {
|
||||
min-height: @size;
|
||||
max-height: @size;
|
||||
min-width: @size;
|
||||
max-width: @size;
|
||||
margin-right: 10px;
|
||||
img {
|
||||
border-radius: 4px;
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Figure out latest release via GitHub API
|
||||
release=$(curl --silent "https://api.github.com/repos/krallin/tini/releases/latest" | jq -r .tag_name)
|
||||
|
||||
# _Reliable_ way to get which arch for tini download
|
||||
arch=$(python <<EOF
|
||||
from __future__ import print_function
|
||||
import platform
|
||||
processor = platform.machine()
|
||||
if processor == 'aarch64':
|
||||
print('arm64', end='')
|
||||
elif processor == 'x86 64' or processor == 'x86_64':
|
||||
print('amd64', end='')
|
||||
elif processor == 'armv7l':
|
||||
print('armhf', end='')
|
||||
|
||||
EOF
|
||||
)
|
||||
|
||||
# Download/install tini
|
||||
curl -L https://github.com/krallin/tini/releases/download/$release/tini-static-$arch \
|
||||
-o /sbin/tini
|
||||
chmod a+x /sbin/tini
|
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,62 @@
|
||||
@import (reference) "../../customize/src/less2/include/framework.less";
|
||||
|
||||
// body
|
||||
body.cp-app-sheet, body.cp-app-oodoc, body.cp-app-ooslide {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
|
||||
&.cp-app-sheet {
|
||||
.framework_main(
|
||||
@bg-color: @colortheme_oocell-bg,
|
||||
@warn-color: @colortheme_oocell-warn,
|
||||
@color: @colortheme_oocell-color
|
||||
);
|
||||
}
|
||||
&.cp-app-oodoc {
|
||||
.framework_main(
|
||||
@bg-color: @colortheme_oodoc-bg,
|
||||
@warn-color: @colortheme_oodoc-warn,
|
||||
@color: @colortheme_oodoc-color
|
||||
);
|
||||
}
|
||||
&.cp-app-ooslide {
|
||||
.framework_main(
|
||||
@bg-color: @colortheme_ooslide-bg,
|
||||
@warn-color: @colortheme_ooslide-warn,
|
||||
@color: @colortheme_ooslide-color
|
||||
);
|
||||
}
|
||||
|
||||
#cp-fileupload {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#cp-toolbar {
|
||||
display: flex; // We need this to remove a 3px border at the bottom of the toolbar
|
||||
}
|
||||
|
||||
.cp-cryptpad-toolbar {
|
||||
padding: 0px;
|
||||
display: inline-block;
|
||||
}
|
||||
#cp-app-oo-container {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
background-color: lightgrey;
|
||||
display: flex;
|
||||
}
|
||||
#cp-app-oo-editor {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
background-color: lightgrey;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
}
|
||||
#ooframe {
|
||||
flex: 1;
|
||||
border:none;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,10 @@
|
||||
git clone https://github.com/ldubost/web-apps.git
|
||||
git clone https://github.com/ldubost/sdkjs.git
|
||||
cd sdkjs
|
||||
make
|
||||
cd ..
|
||||
rm -rf ../web-apps
|
||||
cp -r web-apps/deploy/web-apps ..
|
||||
rm -rf ../sdkjs
|
||||
cp -r web-apps/deploy/sdkjs ..
|
||||
|
@ -0,0 +1,5 @@
|
||||
cd web-apps
|
||||
git pull
|
||||
cd ../sdkjs
|
||||
git pull
|
||||
make clean
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue