Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Update dev ssl #1167

Closed
wants to merge 175 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
3b33984
TE-2639 Support for named release images
jmbowman Jul 9, 2018
1f1b82d
Edraak Hawthorn devstack
Feb 24, 2019
c243c30
Merge pull request #1 from Edraak/omar/hawthorn
shadinaif Apr 30, 2019
ee136b6
Patch for Hawthorn devstack Changes
shadinaif Apr 30, 2019
f9b7918
Merge pull request #2 from Edraak/shadinaif/hawthorn-patch
shadinaif May 2, 2019
0fe838c
Adding edraak-programs to Devstack
shadinaif Jul 21, 2019
69fb08c
Editable envs
Oct 6, 2019
75f88f2
Mount themes
Oct 8, 2019
e3302e2
Merge pull request #3 from Edraak/shadinaif/marketing_programs_docker
Oct 8, 2019
7fd8fe1
Merge pull request #4 from Edraak/omar/configs
Oct 8, 2019
6cc7c22
Split Edraak Provision into Two Files
shadinaif Oct 21, 2019
337e9e7
Adding Marketing and Programs in repo cloning list
shadinaif Oct 21, 2019
6b166b6
Merge pull request #5 from Edraak/shadinaif/marketing-in-makefile
shadinaif Oct 22, 2019
b4ee7b2
Enable the gulp/webpack watchers for marketing by default + more devs…
Oct 25, 2019
00514b3
Merge pull request #6 from Edraak/omar/fixups
devalih Oct 29, 2019
d98f8e8
disable discovery, ecommerce, programs, get docker-sync in sync
Oct 29, 2019
a9dc78d
Added a todo to change the port, make chmod compatible with mac
Oct 29, 2019
bec5995
I forgot to add gulp watch, now it's here
Oct 30, 2019
02f389b
make file update
Oct 30, 2019
f84aa7a
Merge pull request #7 from Edraak/devalih/sync-disable-unsed
Oct 30, 2019
cc46762
Merge pull request #8 from Edraak/omar/use-gulp-watch
devalih Oct 30, 2019
083f3ee
ports, provsion enhance
Oct 30, 2019
5e0fb5a
build images, then provsion all
Oct 30, 2019
e1b6e95
marketing port
Oct 30, 2019
0fe112e
Use Hawthorn branches for marketing and progs
Oct 31, 2019
b2748b4
Build edraak images with every pull
Oct 31, 2019
8ff1482
Standarize devstack ports
Oct 31, 2019
dca415b
Add gulp watch for progs
Nov 1, 2019
571e0c9
Merge pull request #10 from Edraak/omar/branches
Nov 1, 2019
abb53a9
Merge branch 'master' into devalih/progs-marketing
Nov 1, 2019
d147e63
Merge pull request #9 from Edraak/devalih/progs-marketing
Nov 1, 2019
ae15ece
Watch theme assets always
Nov 5, 2019
2ee8bf9
Merge pull request #12 from Edraak/omar/asset-watch
devalih Nov 5, 2019
e13e94f
progs marketing to GCR, clone theme and envs repos, bower install pro…
devalih Nov 5, 2019
2dde9b2
Merge pull request #11 from Edraak/devalih/use-edraak-images
devalih Nov 5, 2019
a920f5a
Increase upload size
Nov 7, 2019
ca179db
Cleanup for `pull`; Ensure all edxapp images have the latest prereqs.
Nov 7, 2019
c6029ba
No need to do sudo.
devalih Nov 10, 2019
f577375
Merge pull request #13 from Edraak/omar/misc
Nov 11, 2019
34bd7be
Hack: Drop nginx cookies to ensure only `.edraak.dev` cookies are kept
Nov 11, 2019
067da5f
Redirect edraak.dev to www to reduce cookie mess
Nov 11, 2019
a4dec52
Link envs before installing prereqs
Nov 11, 2019
c40c02f
Update default.conf
devalih Nov 11, 2019
90c1ca1
Merge pull request #14 from Edraak/omar/drop-cookies
devalih Nov 11, 2019
bc91752
Merge pull request #15 from Edraak/omar/link-envs
devalih Nov 11, 2019
f3e860f
Clean up the cookie hack
Nov 12, 2019
27316c3
Merge pull request #16 from Edraak/omar/cleanup
Nov 15, 2019
59ec83f
Pushed new openedx image, no need for the hacks
devalih Nov 24, 2019
86fe2de
new edxapp image
devalih Nov 26, 2019
3fe9736
add src to docker-sync
devalih Dec 3, 2019
5995a4c
Add NFS support for mac
devalih Dec 4, 2019
9ad97bd
cleaner image
devalih Dec 4, 2019
42ae104
fixes
devalih Dec 4, 2019
187e1f4
Update Makefile
devalih Dec 8, 2019
cda81d6
Update Makefile
devalih Dec 8, 2019
e149081
Update docker-compose.yml
devalih Dec 8, 2019
8353102
Merge pull request #17 from Edraak/devalih/nfs
devalih Dec 8, 2019
07afff4
new theme path
devalih Dec 10, 2019
16ff6a2
devstack cert update
devalih Jan 26, 2020
94cc163
pip req
devalih Feb 25, 2020
71b1d54
checkout change dir
devalih Mar 8, 2020
1f39a72
SSL use chained crt
devalih Mar 10, 2020
87fb9d1
permission fixes for dev.up
Mar 31, 2020
bba3c37
bump mongo to 3.6.17 to match Atlas' version
Mar 31, 2020
5b0550a
Use marketing/progs `master` branches
Mar 31, 2020
1ca0133
Add make command for edraak container shell
Salomari1987 Apr 1, 2020
f0a8206
Add programs gulp restart to make commands
Fahminajjar Apr 1, 2020
71f08d6
Merge pull request #19 from Edraak/enhance/add-programs-gulp-restart
devalih Apr 1, 2020
8fedd68
Merge pull request #18 from Edraak/omar/fixes
Apr 3, 2020
2924bb7
Rename devstack project name to ensure no data clash
Apr 20, 2020
26c1708
Merge pull request #20 from Edraak/omar/devstack
Apr 25, 2020
26c5e92
Revert "Rename devstack volumes to ensure no data clash"
devalih Apr 26, 2020
d1ff547
Merge pull request #22 from Edraak/revert-20-omar/devstack
devalih Apr 26, 2020
4d36db1
new ssl certs
devalih Apr 26, 2020
d3db8a5
Merge pull request #21 from Edraak/devalih/new-ssh
devalih Apr 26, 2020
0190535
Make the compose project name configurable
Apr 29, 2020
033757f
Merge pull request #23 from Edraak/omar/devstack-name
devalih Apr 29, 2020
42e6363
Remove provision-forum
qutaiba Jul 6, 2020
85b430a
Merge pull request #25 from Edraak/qutaiba/remove_provision-forum
devalih Jul 6, 2020
7dbbdda
Edraak make commands
devalih Jul 6, 2020
3a13a6a
Mount SSH keys
Fahminajjar Jul 23, 2020
30b612f
update .dev ssl cert
devalih Jul 26, 2020
ed89f1b
Merge pull request #26 from Edraak/enhance/mount-ssh-keys
devalih Jul 26, 2020
2fd7d8f
Merge pull request #27 from Edraak/devalih/update-ssl-cert
devalih Jul 26, 2020
90cad69
Fix npm install permissions (nfs)
Salomari1987 Aug 12, 2020
76d1521
Merge pull request #28 from Edraak/fix/npm-install-permissions
Fahminajjar Aug 16, 2020
6b272db
Add restart marketing gulp command to Makefile
Fahminajjar Aug 16, 2020
8b53aed
Merge pull request #29 from Edraak/make/add-restart-marketing-gulp
devalih Aug 16, 2020
cc7d279
Change spaces to tabs in the Makefile
Fahminajjar Aug 16, 2020
6825363
Merge pull request #30 from Edraak/hotfix/fix-makefile-tabs
devalih Aug 16, 2020
2135dd7
Remove gulb containers, add watch make commands
devalih Oct 7, 2020
a0ce190
ssl cert update
devalih Oct 24, 2020
5214383
Merge pull request #35 from Edraak/devalih/temp-disable-gulb
devalih Oct 24, 2020
7fb84b5
Merge pull request #36 from Edraak/devstack/new-ssl-cert
Rowadz Oct 25, 2020
5888760
remove compilestatic
Rowadz Sep 20, 2020
ea2267c
edraak judge
devalih Nov 2, 2020
c8673e3
Use gunicorn auto reload feature to automaticly restart the app on co…
devalih Nov 2, 2020
0e9bf64
restart command, nginx headers
devalih Nov 4, 2020
e31cc56
Remove Edraak Judge HEADERS from Nginx
Fahminajjar Nov 4, 2020
e49b7fc
cert and other enhancment
devalih Jan 24, 2021
2b4a909
Merge pull request #38 from Edraak/devalih/cert-update
Rowadz Jan 24, 2021
841bb1d
Add state-manager service to the devstack
Fahminajjar Feb 11, 2021
1671ec9
Add restart command for the state manager
Fahminajjar Mar 18, 2021
7b473a4
cert and other enhancment
devalih Jan 24, 2021
0e6c8c0
Add edraak judge to network
Rowadz Feb 1, 2021
81d2d99
Merge pull request #39 from Edraak/rowadz/add-judge-to-network
devalih Mar 31, 2021
d1bfefa
Merge pull request #40 from Edraak/service/state-manager
devalih Mar 31, 2021
2f9a94b
Merge branch 'master' into devalih/edraak-judge
devalih Mar 31, 2021
ba44b3d
Merge pull request #37 from Edraak/devalih/edraak-judge
devalih Mar 31, 2021
81e2b76
Merge pull request #32 from Edraak/rm-compilestatic
devalih Mar 31, 2021
5aed7ea
SSL cert APR 25
devalih Apr 25, 2021
cdd1964
Merge pull request #43 from Edraak/devalih/ssl-cert
ahmadabuwardeh Apr 25, 2021
f3a4297
new ssl cert
devalih Jun 16, 2021
64f3324
edraak.dev cert
devalih Jun 17, 2021
7e991a7
core devstack fixes
kdmccormick Apr 1, 2021
da00c73
rename services
devalih Apr 4, 2021
212d98a
Complete refactor, for core and b2b
devalih Apr 5, 2021
c659be2
provisioners
devalih Apr 5, 2021
aca3111
nfs/host living in peace togather
devalih Apr 6, 2021
c4c0cf9
Enhance make commands
devalih Apr 6, 2021
8b6e42f
run b2b and progs side by side
devalih Apr 7, 2021
d900e11
b2b addtion, and fixes
devalih Apr 7, 2021
2b38375
Upgrade to mongo4, watch command progs/b2b
devalih May 3, 2021
b0b7c26
Media file on a volume
devalih Jun 2, 2021
d84bb01
b2b theme
devalih Jun 8, 2021
d414aa5
Fix edx provisioner
devalih Jun 23, 2021
bd713c4
Readme update
devalih Jun 23, 2021
1cde4ae
Create mongo users before provisioning any app
devalih Jun 24, 2021
f2aa9fb
Merge pull request #41 from Edraak/devalih/core-b2b-sep
devalih Jun 24, 2021
3ee043b
Update expired dev certificate
umar221b Sep 14, 2021
04ae192
Merge pull request #44 from Edraak/update_dev_certs
umar221b Sep 14, 2021
2aca941
Update docker-compose.yml
Rowadz Sep 20, 2021
2d301cc
Merge pull request #45 from Edraak/update-mysql-to-5.7
devalih Sep 20, 2021
eb697d5
Delete node_modules folders
Oct 26, 2021
ffdc670
changes on provision-b2b.sh
Oct 26, 2021
1553286
Merge pull request #46 from Edraak/sitech-wael/fix-make-provision-scr…
qutaiba Oct 27, 2021
11df825
Use mongo:4.2.17
umar221b Nov 9, 2021
89eca2a
Merge pull request #47 from Edraak/update_mongo_to_4_2
qutaiba Nov 11, 2021
358dfcb
Update dev certificates
umar221b Dec 6, 2021
66b80e6
Merge pull request #48 from Edraak/update_dev_certs
umar221b Dec 6, 2021
c11365c
Remove expiered edx.org ppa from devstack docker image
shadinaif Dec 26, 2021
ffe6db4
Add auth-provider to devstack
shadinaif Jan 4, 2022
61644e3
Merge pull request #42 from Edraak/shadinaif/new_auth
qutaiba Jan 6, 2022
d4cc5b2
Merge pull request #49 from Edraak/shadinaif/remove-expired-edx.org-ppa
qutaiba Jan 6, 2022
dcd4233
Change collect static command settings file for progs to static inste…
Jan 9, 2022
f7d79ba
Merge pull request #50 from Edraak/fix/progs-settings-file
ahmadabuwardeh Jan 9, 2022
93bb0c4
Fix nfs docker compose for auth-provider
shadinaif Jan 10, 2022
6b0fe3e
Merge pull request #51 from Edraak/shadinaif/fix-devstack-auth-nfs
ahmadabuwardeh Jan 10, 2022
3c3e828
Change auth-provider image name
shadinaif Jan 13, 2022
6fe14ad
Merge pull request #52 from Edraak/shadinaif/rename-auth-image
qutaiba Jan 13, 2022
29fc1d1
remove any existing nfs docker volumes before setting it up
mohammedamarnah Jan 16, 2022
c71babe
better filenames matching using regex
mohammedamarnah Jan 17, 2022
d0292f2
Merge pull request #54 from Edraak/nfs_setup_fix
ahmadabuwardeh Jan 20, 2022
79a5ea5
Update dev certificates until June 2022
umar221b Mar 6, 2022
8a3c460
Merge pull request #56 from Edraak/update_dev_certs
umar221b Mar 6, 2022
f10cd3b
Upgrade mongo to 4.4.14 to match staging and production
umar221b May 30, 2022
5861780
Update certificate until September 1st, 2022
umar221b Jun 5, 2022
363622f
Merge pull request #59 from Edraak/update_dev_certificate
umar221b Jun 5, 2022
090fbe6
Merge pull request #58 from Edraak/upgrade_mongo_to_4.4
umar221b Jun 5, 2022
34a1bda
set correct python version for b2b and progs
HusamAjour Jun 6, 2022
ed623f1
set some services in env.all to false:
HusamAjour Jun 6, 2022
3a551ee
Merge pull request #60 from Edraak/set-correct-python-version
halawa Jun 6, 2022
ef4ab33
Renew dev certificate until 3 December 2022
umar221b Sep 4, 2022
f350e61
Merge pull request #61 from Edraak/renew_dev_certificate
umar221b Sep 4, 2022
7b90c3e
Add auth repo to the list of downloaded repos
qutaiba Oct 19, 2022
8fd67d1
Merge pull request #62 from Edraak/qutaiba/fix-auth-devstack
Mohammadhussein95 Oct 19, 2022
55548dc
renewed certs
Dec 1, 2022
dc3e58b
renewed certs
Dec 1, 2022
3fe3dd6
Merge pull request #64 from Edraak/renewingcert
HusamAjour Dec 1, 2022
b172347
renew edraak.dev ssl cert
HusamAjour Mar 1, 2023
ed3fd68
Merge pull request #65 from Edraak/renew-dev-cert
HusamAjour Mar 1, 2023
1726878
update the ssl certificate for edraak.dev
HusamAjour Jun 4, 2023
eb0e1ee
Merge pull request #66 from Edraak/update-dev-ssl-cert
HusamAjour Jun 4, 2023
4d72289
update dev ssl
hmalabehqrf Sep 3, 2023
f7e7e28
Delete nginx/ssl/chained.crt
hmalabehqrf Sep 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .env.all
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
PROGS_CFG=/app/docker.json

# Change mount tyoe to "-nfs" to enable nfs, otherwise leave it empty
MOUNT_TYPE=-nfs

# Enable disable services
ENABLE_PROGS=true
ENABLE_B2B=true
ENABLE_MKTG=true
ENABLE_EDX=true

ENABLE_STATE_MANAGER=false
ENABLE_JUDGE=false
ENABLE_ANALYTICS=false
ENABLE_AUTH=false
ENABLE_NOTIFIER=false

16 changes: 16 additions & 0 deletions .env.b2b
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PROGS_CFG=/app/docker-b2b.json

# Change mount tyoe to "-nfs" to enable nfs, otherwise leave it empty
MOUNT_TYPE=-nfs

# Enable disable services
ENABLE_PROGS=false
ENABLE_B2B=true
ENABLE_MKTG=false
ENABLE_EDX=false

ENABLE_STATE_MANAGER=false
ENABLE_JUDGE=false
ENABLE_ANALYTICS=false
ENABLE_AUTH=false
ENABLE_NOTIFIER=false
17 changes: 17 additions & 0 deletions .env.core
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
PROGS_CFG=/app/docker.json

# Change mount tyoe to "-nfs" to enable nfs, otherwise leave it empty
MOUNT_TYPE=-nfs

# Enable disable services
ENABLE_PROGS=true
ENABLE_B2B=false
ENABLE_MKTG=true
ENABLE_EDX=true

ENABLE_STATE_MANAGER=true
ENABLE_JUDGE=false
ENABLE_ANALYTICS=false
ENABLE_AUTH=false
ENABLE_NOTIFIER=false

5 changes: 0 additions & 5 deletions .env.example

This file was deleted.

143 changes: 86 additions & 57 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,58 @@
.PHONY: requirements

DEVSTACK_WORKSPACE ?= $(shell pwd)/..
include .env

OS := $(shell uname)

COMPOSE_PROJECT_NAME=devstack
COMPOSE_PROJECT_NAME=${EDRAAK_COMPOSE_PROJECT_NAME:-devstack}
DOCKER_COMPOSE_FILES=-f docker-compose.yml

ifeq (${ENABLE_PROGS}, true)
DOCKER_COMPOSE_FILES+=-f docker-compose-progs.yml
DOCKER_COMPOSE_FILES+=-f docker-compose-progs${MOUNT_TYPE}.yml
endif

ifeq (${ENABLE_B2B}, true)
DOCKER_COMPOSE_FILES+=-f docker-compose-b2b.yml
DOCKER_COMPOSE_FILES+=-f docker-compose-b2b${MOUNT_TYPE}.yml
endif

ifeq (${ENABLE_MKTG}, true)
DOCKER_COMPOSE_FILES+=-f docker-compose-mktg.yml
DOCKER_COMPOSE_FILES+=-f docker-compose-mktg${MOUNT_TYPE}.yml
endif

ifeq (${ENABLE_EDX}, true)
DOCKER_COMPOSE_FILES+=-f docker-compose-edx.yml
DOCKER_COMPOSE_FILES+=-f docker-compose-edx${MOUNT_TYPE}.yml
endif

ifeq (${ENABLE_STATE_MANAGER}, true)
DOCKER_COMPOSE_FILES+=-f docker-compose-state-manager.yml
DOCKER_COMPOSE_FILES+=-f docker-compose-state-manager${MOUNT_TYPE}.yml
endif

ifeq (${ENABLE_JUDGE}, true)
DOCKER_COMPOSE_FILES+=-f docker-compose-judge.yml
DOCKER_COMPOSE_FILES+=-f docker-compose-judge${MOUNT_TYPE}.yml
endif

ifeq (${ENABLE_AUTH}, true)
DOCKER_COMPOSE_FILES+=-f docker-compose-auth-provider.yml
DOCKER_COMPOSE_FILES+=-f docker-compose-auth-provider${MOUNT_TYPE}.yml
endif

export DOCKER_COMPOSE_FILES

export DEVSTACK_WORKSPACE
export COMPOSE_PROJECT_NAME

include *.mk

compose-files:
@echo ${DOCKER_COMPOSE_FILES};

# Generates a help message. Borrowed from https://github.com/pydanny/cookiecutter-djangopackage.
help: ## Display this help message
@echo "Please use \`make <target>' where <target> is one of"
Expand All @@ -34,18 +76,17 @@ upgrade: ## Upgrade requirements with pip-tools
requirements/pip-tools.txt \
requirements/base.txt \

dev.checkout: ## Check out "masters" otherwise
./repo.sh checkout

dev.clone: ## Clone service repos to the parent directory
./repo.sh clone

dev.provision.run: ## Provision all services with local mounted directories
DOCKER_COMPOSE_FILES="-f docker-compose.yml -f docker-compose-host.yml" ./provision.sh
./provision.sh

dev.provision: | check-memory dev.clone dev.provision.run stop ## Provision dev environment with all services stopped

dev.provision.xqueue: | check-memory dev.provision.xqueue.run stop stop.xqueue

dev.provision.xqueue.run:
DOCKER_COMPOSE_FILES="-f docker-compose.yml -f docker-compose-xqueue.yml" ./provision-xqueue.sh

dev.reset: | down dev.repo.reset pull dev.up static update-db ## Attempts to reset the local devstack to a the master working state

Expand All @@ -55,72 +96,55 @@ dev.status: ## Prints the status of all git repositories
dev.repo.reset: ## Attempts to reset the local repo checkouts to the master working state
./repo.sh reset

dev.up: | check-memory ## Bring up all services with host volumes
docker-compose -f docker-compose.yml -f docker-compose-host.yml up -d
@# Comment out this next line if you want to save some time and don't care about catalog programs
./programs/provision.sh cache >/dev/null

dev.up.watchers: | check-memory ## Bring up asset watcher containers
docker-compose -f docker-compose-watchers.yml up -d

dev.up.xqueue: | check-memory ## Bring up xqueue, assumes you already have lms running
docker-compose -f docker-compose.yml -f docker-compose-xqueue.yml -f docker-compose-host.yml up -d

dev.up.all: | dev.up dev.up.watchers ## Bring up all services with host volumes, including watchers
dev.editable-envs: ## Copy env files outside the docker containers so it's editable by the developer
mkdir -p $(DEVSTACK_WORKSPACE)/src/edxapp-envs/
@docker exec -it edx.devstack.lms bash -c 'test -f /edx/src/edxapp-envs/lms.env.json || mv /edx/app/edxapp/lms.{env,auth}.json /edx/src/edxapp-envs/'
@docker exec -it edx.devstack.lms bash -c 'ln -sf /edx/src/edxapp-envs/lms.{env,auth}.json /edx/app/edxapp/'
@docker exec -it edx.devstack.studio bash -c 'test -f /edx/src/edxapp-envs/cms.env.json || mv /edx/app/edxapp/cms.{env,auth}.json /edx/src/edxapp-envs/'
@docker exec -it edx.devstack.studio bash -c 'ln -sf /edx/src/edxapp-envs/cms.{env,auth}.json /edx/app/edxapp/'
@sudo chown -R $(USER) $(DEVSTACK_WORKSPACE)/src
@make lms-restart
@make studio-restart

dev.sync.daemon.start: ## Start the docker-sycn daemon
docker-sync start

dev.sync.provision: | dev.sync.daemon.start dev.provision ## Provision with docker-sync enabled

dev.sync.requirements: ## Install requirements
gem install docker-sync

dev.sync.up: dev.sync.daemon.start ## Bring up all services with docker-sync enabled
docker-compose -f docker-compose.yml -f docker-compose-sync.yml up -d

provision: | dev.provision ## This command will be deprecated in a future release, use dev.provision
echo "\033[0;31mThis command will be deprecated in a future release, use dev.provision\033[0m"
dev.up: | check-memory ## Bring up all services with host volumes
docker-compose ${DOCKER_COMPOSE_FILES} up -d

edraak.dev.up.hacks:
@# Start: Edraak hacks
@# TODO: Add this to `base.in` (thus `development.txt`) and rebuild the docker image
@make dev.editable-envs
@for container in lms studio lms_watcher studio_watcher; do \
docker exec -it edx.devstack.$$container bash -c 'source /edx/app/edxapp/edxapp_env && pip install python-bidi==0.4.0'; \
docker exec -it edx.devstack.$$container bash -c 'source /edx/app/edxapp/edxapp_env && pip install wand==0.5.1'; \
docker exec -it edx.devstack.$$container bash -c 'source /edx/app/edxapp/edxapp_env && pip install -e /edx/app/edxapp/edx-platform'; \
done;
@make lms-restart
@make studio-restart
@# End: Edraak hacks

provision: | dev.provision

stop: ## Stop all services
(test -d .docker-sync && docker-sync stop) || true ## Ignore failure here
docker-compose stop

stop.watchers: ## Stop asset watchers
docker-compose -f docker-compose-watchers.yml stop

stop.all: | stop.analytics_pipeline stop stop.watchers ## Stop all containers, including asset watchers

stop.xqueue:
docker-compose -f docker-compose-xqueue.yml stop
docker-compose ${DOCKER_COMPOSE_FILES} stop

down: ## Remove all service containers and networks
(test -d .docker-sync && docker-sync clean) || true ## Ignore failure here
docker-compose -f docker-compose.yml -f docker-compose-watchers.yml -f docker-compose-xqueue.yml -f docker-compose-analytics-pipeline.yml down
docker-compose ${DOCKER_COMPOSE_FILES} down

destroy: ## Remove all devstack-related containers, networks, and volumes
./destroy.sh

logs: ## View logs from containers running in detached mode
docker-compose -f docker-compose.yml -f docker-compose-analytics-pipeline.yml logs -f
docker-compose ${DOCKER_COMPOSE_FILES} logs -f --tail 10

%-logs: ## View the logs of the specified service container
docker-compose -f docker-compose.yml -f docker-compose-analytics-pipeline.yml logs -f --tail=500 $*

xqueue-logs: ## View logs from containers running in detached mode
docker-compose -f docker-compose-xqueue.yml logs -f xqueue

xqueue_consumer-logs: ## View logs from containers running in detached mode
docker-compose -f docker-compose-xqueue.yml logs -f xqueue_consumer

pull: ## Update Docker images
docker-compose pull --parallel
docker-compose ${DOCKER_COMPOSE_FILES} logs -f --tail=500 $*

pull.xqueue: ## Update XQueue Docker images
docker-compose -f docker-compose-xqueue.yml pull --parallel
pull:
docker-compose ${DOCKER_COMPOSE_FILES} pull --parallel

validate: ## Validate the devstack configuration
docker-compose config
docker-compose ${DOCKER_COMPOSE_FILES} config

backup: ## Write all data volumes to the host.
docker run --rm --volumes-from edx.devstack.mysql -v $$(pwd)/.dev/backups:/backup debian:jessie tar zcvf /backup/mysql.tar.gz /var/lib/mysql
Expand All @@ -132,11 +156,16 @@ restore: ## Restore all data volumes from the host. WARNING: THIS WILL OVERWRIT
docker run --rm --volumes-from edx.devstack.mongo -v $$(pwd)/.dev/backups:/backup debian:jessie tar zxvf /backup/mongo.tar.gz
docker run --rm --volumes-from edx.devstack.elasticsearch -v $$(pwd)/.dev/backups:/backup debian:jessie tar zxvf /backup/elasticsearch.tar.gz

%-edbash: ## Run a shell on the specified service container
docker exec -it edraak.devstack.$* /bin/bash


# TODO: Print out help for this target. Even better if we can iterate over the
# services in docker-compose.yml, and print the actual service names.
%-shell: ## Run a shell on the specified service container
docker exec -it edx.devstack.$* /bin/bash


credentials-shell:
docker exec -it edx.devstack.credentials env TERM=$(TERM) bash -c 'source /edx/app/credentials/credentials_env && cd /edx/app/credentials/credentials && /bin/bash'

Expand Down Expand Up @@ -202,7 +231,7 @@ lms-static: ## Rebuild static assets for the LMS container
studio-static: ## Rebuild static assets for the Studio container
docker exec -t edx.devstack.studio bash -c 'source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform/ && paver update_assets'

static: | credentials-static discovery-static ecommerce-static lms-static studio-static ## Rebuild static assets for all service containers
static: | lms-static studio-static ## Rebuild static assets for all service containers

healthchecks: ## Run a curl against all services' healthcheck endpoints to make sure they are up. This will eventually be parameterized
./healthchecks.sh
Expand Down
34 changes: 0 additions & 34 deletions Makefile.edx

This file was deleted.

Loading