Repository navigation
dev.ampliconrepository.org instructions
Jens Luebeck edited this page Nov 11, 2026
·
8 revisions
Here are the steps for updating the dev server on AWS, dev.ampliconrepository.org. Updating the prod server is the same process.
- Get logged into the server
- Using AWSConsole (https://awsconsole.ucsd.edu) login to AWS.
- Go to EC2, select the dev server's checkbox and then the "Connect" button near the top.
- On the next page you may need to change the username on the next page from 'root' to 'ubuntu'. Click connect. Now you should have a terminal on the server in your browser.
Take the operator lock before changing the server, and release it when you're done.
-
If no changes to required packages, jump to step 3.
- Stop the docker container: "
docker exec -t amplicon-dev bash /srv/caper/stop-server.sh" (waits for background tasks), then "docker stop amplicon-dev". These two replace the old root./stop-server.sh, which ran them both. A baredocker stopskips the wait. - Remove the old container with "
docker rm amplicon-dev" - "
cd /home/ubuntu/ampRepo_for_docker_build/AmpliconRepository" git checkout <branch or tag name>docker build -t genepattern/amplicon-repo:dev .- set up the new container to run the code with the updated requirements
/home/ubuntu/AmpliconRepository-dev/scripts/deploy/start-server.sh. This will now have the new container but the old code Proceed to step 3.
- Stop the docker container: "
-
Update the server code from github .
cd ~/AmpliconRepository-Devgit checkout <branch or tag>-
~/stop-and-start-server.sh<<-- this will stop and restart the server. On restart it will have the updated code you checked out.