Skip to main content

Note Docker 27-11 lumen microservices Bamboo AWS ECR

mysql: build: ./mysql volumes: - ./mysql/startup:/docker-entrypoint-initdb.d volumes_from: - volumes_data ports: - "3309:3306" environment: MYSQL_ROOT_PASSWORD: 1234

However to run php artisan from workspace container I need .env to specify port 3306:

DB_HOST=mysql DB_DATABASE=local_a DB_USERNAME=root DB_PASSWORD=1234 DB_PORT=3306

I guess this is because I am connecting container to container, however maybe this will help someone.

Docker

https://github.com/FabrizioCafolla/microservice-lumen/wiki

https://www.poweredlocal.com.au/

php redis osx => may be manual build/install

https://stackoverflow.com/questions/50456780/run-mysql-on-port-3307-using-docker-compose
https://github.com/guillaumebriday/laravel-blog/blob/master/docker-compose.yml

https://medium.com/@shakyShane/laravel-docker-part-1-setup-for-development-e3daaefaf3c

Authen header bearer
http://self-issued.info/docs/draft-ietf-oauth-v2-bearer.html#authz-header
Ubuntu VPS work without header Authen, OSX seem need it => still not work => jwt:secret clear/reset secret to fix 'Token invalid'
https://blog.pusher.com/laravel-jwt/

https://blog.valiantys.com/en/dev-tools-en/devops-made-easy-with-bamboo/
https://blog.valiantys.com/en/expert-tips/deploying-docker-containers-aws/
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html

http://blog.totalcloud.io/ecs-vs-eks-vs-fargate-good-bad-ugly/

Some image for AWS
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html

https://console.aws.amazon.com/ecs/home?region=us-east-1#/firstRun

Docker ECS guide (dupli)
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html

membership$ ecs-cli up   –keypair ~/.ssh/id_rsa_ecs.pub -instance-role ecsTaskExecutionRole  –size 1 –instance-type t2.medium   –port 8083
WARN[0000] You will not be able to SSH into your EC2 instances without a key pair.
INFO[0000] Using recommended Amazon Linux 2 AMI with ECS Agent 1.22.0 and Docker version 18.06.1-ce
INFO[0000] Created cluster                               cluster=primexdemo9 region=ap-southeast-1
INFO[0000] Waiting for your cluster resources to be created...
INFO[0000] Cloudformation stack status                   stackStatus=CREATE_IN_PROGRESS
INFO[0060] Cloudformation stack status                   stackStatus=CREATE_IN_PROGRESS
INFO[0120] Cloudformation stack status                   stackStatus=CREATE_IN_PROGRESS
VPC created: vpc-0b38e0efd75d1c4b7
Security Group created: sg-061bdb8ccc6c72671
Subnet created: subnet-0f07c528e9d6fe1f6
Subnet created: subnet-0aa9ba47908c511ed

aws ecs list-clusters
aws ecs delete-cluster --cluster="arn:aws:ecs:ap-southeast-1:861481479208:cluster/primexdemo7"


Comments

Popular posts from this blog

AWS Elasticache Memcached connection

https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/accessing-elasticache.html#access-from-outside-aws http://hourlyapps.blogspot.com/2010/06/examples-of-memcached-commands.html Access memcached https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/GettingStarted.AuthorizeAccess.html Zip include hidden file https://stackoverflow.com/questions/12493206/zip-including-hidden-files phpmemcachedadmin ~ phpMyAdmin or phpPgAdmin ... telnet mycachecluster.eaogs8.0001.usw2.cache.amazonaws.com 11211 stats items stats cachedump 27 100 https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/VPCs.EC.html https://lzone.de/cheat-sheet/memcached VPC ID Security Group ID (sg-...) Cluster: The identifier for the cluster memcached1 Creation Time: The time (UTC) when the cluster was created January 9, 2019 at 11:47:16 AM UTC+7 Configuration Endpoint: The configuration endpoint of the cluster memcached1.ahgofe.cfg.usw1.cache.amazonaws.com:11211 St...

Notes Windows 10 Virtualbox config, PHP Storm Japanese, custom PHP, Apache build, Postgresql

 cmd => Ctrl + Shift + Enter mklink "C:\Users\HauNT\Videos\host3" "C:\Windows\System32\drivers\etc\hosts" https://www.quora.com/How-to-create-a-router-in-php https://serverfault.com/questions/225155/virtualbox-how-to-set-up-networking-so-both-host-and-guest-can-access-internet 1 NAT + 1 host only config https://unix.stackexchange.com/questions/115464/how-to-properly-set-up-2-network-interfaces-in-centos-running-in-virtualbox DEVICE=eth0 TYPE=Ethernet #BOOTPROTO=dhcp BOOTPROTO=none #IPADDR=10.9.11.246 #PREFIX=24 #GATEWAY=10.9.11.1 #IPV4_FAILURE_FATAL=yes #HWADDR=08:00:27:CC:AC:AC ONBOOT=yes NAME="System eth0" [root@localhost www]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 # Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] DEVICE=eth1 IPADDR=192.168.56.28 <= no eff => auto like DHCP #GATEWAY=192.168.56.1 #BOOTPROTO=dhcp BOOTPROTO=static <= no eff ONBOOT=yes HWADDR=08:00:27:b4:20:10 [root@localhost www]# ...

Rocket.Chat DB schema

_raix_push_notifications avatars.chunks avatars.files instances meteor_accounts_loginServiceConfiguration meteor_oauth_pendingCredentials meteor_oauth_pendingRequestTokens migrations rocketchat__trash rocketchat_cron_history rocketchat_custom_emoji rocketchat_custom_sounds rocketchat_import rocketchat_integration_history rocketchat_integrations rocketchat_livechat_custom_field rocketchat_livechat_department rocketchat_livechat_department_agents rocketchat_livechat_external_message rocketchat_livechat_inquiry rocketchat_livechat_office_hour rocketchat_livechat_page_visited rocketchat_livechat_trigger rocketchat_message rocketchat_oauth_apps rocketchat_oembed_cache rocketchat_permissions rocketchat_raw_imports rocketchat_reports rocketchat_roles rocketchat_room rocketchat_settings rocketchat_smarsh_history rocketchat_statistics rocketchat_subscription rocketchat_uploads system.indexes users usersSessions https://rocket.chat/docs/developer-guides/sc...