This is an issues-only repo for Femiwiki.
femiwiki / ami Goto Github PK
View Code? Open in Web Editor NEW:package: Base AMI of Femiwiki
License: GNU Affero General Public License v3.0
:package: Base AMI of Femiwiki
License: GNU Affero General Public License v3.0
Related with femiwiki/femiwiki#9
TBD
$ packer --version
1.4.4
1.4.5가 최신 안정버전이기 때문에 1.4.5로 한번 테스트해보고 안 되면 t3a에서 t3로 바꾸어야 할 것 같습니다.
femiwiki/docker-mediawiki#309 이슈 해결을 위해 단기적으로 Docker Swarm 대신 Docker Compose 사용할 예정이며 설치가 필요합니다.
서버 부하가 갑자기 커지거나 하는 상황에서 atop이 미리 깔려있으면 정말 유용할것같다. 달리 저렴하게 쓸 수 있는 디테일한 모니터링 수단도 없고, atop에 서버에 주는 부하가 큰것같지도 않으니 계속 깔아서 잘 써보자.
지금은 임시로 각 서버들에 sudo yum install 'https://www.atoptool.nl/download/atop-2.4.0-1.x86_64.rpm'
를 실행한 상태
Related with femiwiki/femiwiki#64
$ packer version
Packer v1.4.4
packer build femiwiki-base.json
실행 시 빌더 인스턴스, sg, key pair 생성 과정까지는 잘 되나 "Waiting for SSH to become available..." 메시지 표시 후 진행되지 않다가 "Timeout waiting for SSH."와 함께 종료 과정으로 넘어감.
환경변수 PACKER_LOG=1
을 설정하고 재실행 하니 "172.31"로 시작하는 IP로 열심히 접속을 시도하고 있길래 검색, https://github.com/hashicorp/packer/issues/5627#issuecomment-520001157
을 보고 "ssh_interface": "public_ip"
을 추가했더니 그런 문제가 없어짐.
ssh_interface
는 현재(2019년 11월) Packer.io의 SSH Communicator 문서에는 없고 AMI Builder (EBS backed) 문서에는 "ssh_interface (string) - SSH Interface"이라고 짧게 써 있음.
ssh_interface
은 hashicorp/packer@707ec67에서 추가되었으며 이와 함께 ssh_private_ip
은 레거시가 된 것 같음.
코드를 보면 해당 값이 public_ip
, private_ip
, public_dns
, private_dns
중 하나로 설정되어 있다면 빌더 인스턴스의 해당 값을 모르지 않는 한 그대로 실행하는 것 같고, 반면 ssh_interface
가 없을 땐 퍼블릭이 있다면 퍼블릭으로, 아니면 프라이빗으로 시도하는 것 같음.(https://github.com/hashicorp/packer/blob/v1.4.4/builder/amazon/common/ssh.go#L35-L64).
그래서 Public Ip Address로 접속을 시도해야 할 거 같은데 왜 Private Ip Address로 하고 있는지 원인을 모르겠지만 일단 문제를 해결하기 위해 "ssh_interface": "public_ip"
을 추가하겠음.
Amazon Linux 2 2.0.20190618 or later comes preconfigured with EC2 Instance Connect.
--https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html#ec2-instance-connect-install
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.