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

Commit

Permalink
Merge pull request #283 from CounterpartyXCP/develop
Browse files Browse the repository at this point in the history
append to update
  • Loading branch information
Robby Dermody authored Jun 27, 2016
2 parents 0b30cc9 + bafb74b commit 503a934
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ services:
- "443:443"

mongodb-base:
hostname: ${HOSTNAME_BASE}-mongo
image: mongo:3.2
volumes:
- mongodb-data:/data/db

redis-base:
hostname: ${HOSTNAME_BASE}-redis
image: redis:3.2
12 changes: 12 additions & 0 deletions fednode.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,18 @@ def main():
else:
os.system(git_cmd)

if service_base == 'counterwallet': # special case
transifex_cfg_path = os.path.join(os.path.expanduser("~"), ".transifex")
if os.path.exists(transifex_cfg_path):
os.system("{} docker cp {} federatednode_counterwallet_1:/root/.transifex".format(SUDO_CMD, transifex_cfg_path))
os.system("{} docker exec -i -t federatednode_counterwallet_1 bash -c \"cd /counterwallet/src ".format(SUDO_CMD) +
"&& bower --allow-root update && cd /counterwallet && npm update && grunt build\"")
if not os.path.exists(transifex_cfg_path):
print("NOTE: Did not update locales because there is no .transifex file in your home directory")
print("If you want locales compiled, sign up for transifex and create this file to" +
" contain 'your_transifex_username:your_transifex_password'")


# and restart container
if not args.no_restart:
run_compose_cmd("restart {}".format(service))
Expand Down

0 comments on commit 503a934

Please sign in to comment.