Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix proto #197

Merged
merged 5 commits into from Apr 7, 2017
View
@@ -3,7 +3,9 @@ RUN apt-get update && apt-get install make
COPY . /srv/everware
WORKDIR /srv/everware/
-RUN make install
+RUN cd $(npm root -g)/npm && npm install fs-extra \
+ && sed -i -e s/graceful-fs/fs-extra/ -e s/fs.rename/fs.move/ ./lib/utils/rename.js
+RUN make clean install
EXPOSE 8000
EXPOSE 8081
View
@@ -53,8 +53,8 @@ install: ## install everware
if [ ! -f env.sh ] ; then cp env.sh.orig env.sh ; fi
-ogs: ${LOG} ## watch log file
- tail -f ${LOG}
+docker-build: ## build docker image
+ docker build --no-cache -t everware/everware:0.10.0 .
test: ## run all tests
export UPLOADDIR=${UPLOADDIR}; \
View
@@ -4,6 +4,8 @@
# In case of local, don't forget to mount /var/run/docker.sock
# In case of remote, don't forget the DOCKER_HOST environment variable
+import os
+
c = get_config()
load_subconfig('etc/base_config.py')
load_subconfig('etc/github_auth.py')
@@ -5,6 +5,8 @@
# but don't forget to set Docker Swarm environment
# variables in the env file
+import os
+
c = get_config()
load_subconfig('etc/base_config.py')
load_subconfig('etc/github_auth.py')
View
@@ -1,4 +1,4 @@
-__version__ = "0.10.0"
+__version__ = "0.10.1"
from .spawner import *
from .authenticator import *
from .user_spawn_handler import *
@@ -47,9 +47,7 @@ def get(self, name, user_path):
else:
if is_up:
self.set_login_cookie(current_user)
- target = '%s://%s/user/%s' % (
- self.request.protocol,
- self.request.host,
+ target = '/user/%s' % (
current_user.name
)
self.log.info('redirecting to %s' % target)
View
@@ -21,9 +21,10 @@ run-dockermachine: clean ## run everware server on MacOS
${EXECUTOR} -f etc/local_dockermachine_config.py --no-ssl 2>&1 | tee ${LOG}
run-daemon: clean ## run everware in daemon mode, linux only, SSL required
+ [ -f ${LOG} ] && mv ${LOG} ${LOG}.`date +%Y%m%d-%s`
source ./env.sh && \
- ${EXECUTOR} -f etc/local_config.py >> ${LOG} 2>&1 &
- pgrep ${EXECUTOR} > ${PIDFILE} || ( tail ${LOG} && exit 1 )
+ ${EXECUTOR} -f etc/local_config.py --debug --no-ssl >> ${LOG} 2>&1 &
+ pgrep ${EXECUTOR} > ${PIDFILE} || ( tail ${LOG} && rm ${PIDFILE} && exit 1 )
echo "Started. Log saved to ${LOG}"
stop: