Closed devinat1 closed 5 months ago
If you are using our AMI, can you see if docker ps -a
already contains the containers?
Yes, it already contains the containers.
can you start the containers? Loading images again will be quite slow
These are the exact commands I entered (instance has since been terminated):
docker start gitlab
docker start shopping
docker start shopping_admin
docker start forum
docker start kiwix33
cd /home/ubuntu/openstreetmap-website/
docker compose start
docker exec shopping /var/www/magento2/bin/magento setup:store-config:set --base-url="http://ec2-3-18-138-113.us-east-2.compute.amazonaws.com:7770" # no trailing /
docker exec shopping mysql -u magentouser -pMyPassword magentodb -e 'UPDATE core_config_data SET value="http://ec2-3-18-138-113.us-east-2.compute.amazonaws.com:7770/" WHERE path = "web/secure/base_url";'
# remove the requirement to reset password
docker exec shopping_admin php /var/www/magento2/bin/magento config:set admin/security/password_is_forced 0
docker exec shopping_admin php /var/www/magento2/bin/magento config:set admin/security/password_lifetime 0
docker exec shopping /var/www/magento2/bin/magento cache:flush
docker exec shopping_admin /var/www/magento2/bin/magento setup:store-config:set --base-url="http://ec2-3-18-138-113.us-east-2.compute.amazonaws.com:7780"
docker exec shopping_admin mysql -u magentouser -pMyPassword magentodb -e 'UPDATE core_config_data SET value="http://ec2-3-18-138-113.us-east-2.compute.amazonaws.com:7780/" WHERE path = "web/secure/base_url";'
docker exec shopping_admin /var/www/magento2/bin/magento cache:flush
docker exec gitlab sed -i "s|^external_url.*|external_url 'http://ec2-3-18-138-113.us-east-2.compute.amazonaws.com:8023'|" /etc/gitlab/gitlab.rb
docker exec gitlab gitlab-ctl reconfigure
---
docker load --input shopping_final_0712.tar
docker run --name shopping -p 7770:80 -d shopping_final_0712
# wait ~1 min to wait all services to start
docker exec shopping /var/www/magento2/bin/magento setup:store-config:set --base-url="http://ec2-3-18-138-113.us-east-2.compute.amazonaws.com:7770" # no trailing slash
docker exec shopping mysql -u magentouser -pMyPassword magentodb -e 'UPDATE core_config_data SET value="http://ec2-3-18-138-113.us-east-2.compute.amazonaws.com:7770/" WHERE path = "web/secure/base_url";'
docker exec shopping /var/www/magento2/bin/magento cache:flush
Go to https://ec2-3-18-138-113.us-east-2.compute.amazonaws.com:7770
Still, I cannot go to the site https://ec2-3-18-138-113.us-east-2.compute.amazonaws.com:7770 (doesn't exist).
I see. Actually you don't need to run docker load --input shopping_final_0712.tar
and below if you are using our AMI. You can stop at docker exec gitlab gitlab-ctl reconfigure
. Please check if docker ps
is showing up all the required dockers. If you still cannot access the websites, check your AWS instance firewall setting to allow all incoming TCP traffic.
I tried each of the commands in order as shown in the docker environment README. However, I am not getting the site to load. The command docker load --input shopping_final_0712.tar becomes stuck. I created the AMI with all the recommended settings.