-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:operepo/ope
- Loading branch information
Showing
9 changed files
with
111 additions
and
59 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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
#!/bin/sh | ||
|
||
docker-compose down --remove-orphans | ||
compose=`which docker-compose` | ||
|
||
if [ -z "$compose" ]; then | ||
compose="docker compose" | ||
fi; | ||
echo "Using Compose: $compose" | ||
|
||
|
||
|
||
#docker-compose down --remove-orphans | ||
$compose down --remove-orphans |
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
#!/bin/bash | ||
|
||
docker-compose exec ope-redis sh -c "redis-cli flushdb" | ||
compose=`which docker-compose` | ||
|
||
if [ -z "$compose" ]; then | ||
compose="docker compose" | ||
fi; | ||
echo "Using Compose: $compose" | ||
|
||
|
||
$compose exec ope-redis sh -c "redis-cli flushdb" | ||
# flushall clears ALL dbs. | ||
|
||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ FROM instructure/node-passenger:12 | |
LABEL maintainer="Ray Pulsipher <[email protected]>" | ||
LABEL description="Canvas LMS by Instructure - Image for Open Prison Education" | ||
LABEL vendor="openprisoneducation.com" | ||
LABEL version="1.2" | ||
LABEL version="1.3" | ||
|
||
USER root | ||
|
||
|
@@ -16,15 +16,16 @@ LABEL rebuild=7 | |
# Pull the RCE server | ||
ENV RCE_APP_HOME /usr/src/rce/ | ||
WORKDIR $RCE_APP_HOME | ||
ENV RCE_RELEASE master | ||
#ENV RCE_RELEASE master | ||
ENV RCE_RELEASE v1.21 | ||
RUN mkdir -p ${RCE_APP_HOME} \ | ||
&& cd ${RCE_APP_HOME} \ | ||
&& git init \ | ||
&& git remote add origin https://github.com/instructure/canvas-rce-api \ | ||
&& git fetch origin master --no-tags --depth 1 \ | ||
&& git checkout master \ | ||
#&& git fetch origin --no-tags --depth 1 refs/tags/${RCE_RELEASE}:refs/tags/${RCE_RELEASE} \ | ||
#&& git checkout ${RCE_RELEASE} \ | ||
#&& git fetch origin master --no-tags --depth 1 \ | ||
#&& git checkout master \ | ||
&& git fetch origin --no-tags --depth 1 refs/tags/${RCE_RELEASE}:refs/tags/${RCE_RELEASE} \ | ||
&& git checkout ${RCE_RELEASE} \ | ||
&& npm install --production \ | ||
&& echo Checkout done. | ||
|
||
|
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 |
---|---|---|
|
@@ -9,14 +9,14 @@ LABEL rebuild=8 | |
LABEL maintainer="Ray Pulsipher <[email protected]>" | ||
LABEL description="Web Gateway for Open Prison Education - source files at https://github.com/operepo" | ||
LABEL vendor="openprisoneducation.com" | ||
LABEL version="0.8" | ||
LABEL version="0.9" | ||
|
||
ARG VERSION=dev | ||
|
||
RUN apk add nano openssl | ||
|
||
|
||
LABEL rebuild=139 | ||
LABEL rebuild=141 | ||
# public_certs moved under /usr/share/nginx/html | ||
# Make public_certs folder so we can make it easy to grab crt file | ||
#RUN mkdir -p /public_certs \ | ||
|
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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
#!/bin/bash | ||
|
||
docker-compose exec ope-canvas bash -c "cd /usr/src/app; bundle exec rake canvas:compile_assets" | ||
|
||
compose=`which docker-compose` | ||
|
||
if [ -z "$compose" ]; then | ||
compose="docker compose" | ||
fi; | ||
echo "Using Compose: $compose" | ||
|
||
|
||
$compose exec ope-canvas bash -c "cd /usr/src/app; bundle exec rake canvas:compile_assets" | ||
|
||
|
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