Docker image 생성 및 deployment 생성 아래와 같이 Dockerfile을 생성하고 Build하여 image로 생성한다. jacob@jacob-laptop:~/workspaces/hellopy$ cat Dockerfile FROM python:3.7.4 EXPOSE 8000 CMD python -m SimpleHTTPServer jacob@jacob-laptop:~/workspaces/hellopy$ docker build -t hello-py:v1 . Sending build context to Docker daemon 2.048kB Step 1/3 : FROM python:3.7.4 ---> 02d2bb146b3b Step 2/3 : EXPOSE 8000 ---> Using cache..
실행예제 powershell 실행을 위해서는 set-executionpolicy 를 변경해야 한다. default로 restricted로 되어 있어 실행이 불가하다. 아래명령을 수행하여 powershell script를 수행할 수 있는 환경으로 변경한다. set-executionpolicy unrestricted https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-6 write-host를 통한 메세지 출력 $testval = 1 write-host("testval : {0}" -f $testval) https://devblogs.microsoft.c..
open 된 proxy 혹은 내부에 제공되는 proxy 서버의 사용을 다음과 같이 수행할수 있다. Linux 환경이라면 아래와 같은 환경변수를 추가하면 된다. export http_proxy="http://USER:PASSWORD@PROXY_SERVER:PORT" export https_proxy="https://USER:PASSWORD@PROXY_SERVER:PORT" export ftp_proxy="http://USER:PASSWORD@PROXY_SERVER:PORT" https://www.shellhacks.com/linux-proxy-server-settings-set-proxy-command-line/ 실제 cURL을 통해 연결시도를 해보면 다음과 같은 결과를 확인할 수 있다. root@ubun..
CentOS7에서 Docker 설치 및 실행법 CentOS7에서 Docker 설치 및 실행을 하는 방법을 간단히 기술한다. [root@jenkins centos]# cat /etc/centos-release CentOS Linux release 7.6.1810 (Core)위와 같은 환경에서 설치를 진행하였다. [root@jenkins centos]# yum install docker Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.moack.net * extras: centos.mirror.moack.net * updates: centos.mirror.moack.net Resolvin..
VirtualBox에서 VM을 시작한후 특정 시점(정확한 시점확인이 되지는 않았지만 network interface add 하는 시점으로 예상된다.)에 hang이 걸리는 현상이 발생되었다. Google 검색을 통해 확인해본 결과 Hyper-V와 호환성 문제가 있는듯하다. 문제 상황이 발생되었던 시점이 Hyper-V 를 "기능 켜기/끄기"에서 enable 하고 재부팅한 시점부터 발생되었었다. Hyper-V 기능을 끈후 다시 재부팅하여 현상이 없어짐을 확인하였다. https://superuser.com/questions/1145011/is-virtualbox-incompatible-with-hyper-v-in-windows-10 Is Virtualbox incompatible with Hyper-V in W..
Virtualbox 를 ubuntu 상에 설치후 vagrant up을 통해 provision을 수행시 아래와 같이 에러가 발생되는 경우가 있었다. jacob@jacob-laptop:~/workspaces/vagrant-jenkins$ vagrant up --provider=virtualbox The provider 'virtualbox' that was requested to back the machine 'default' is reporting that it isn't usable on this system. The reason is shown below: VirtualBox is complaining that the installation is incomplete. Please run `VBoxMan..
vagrant는 다양한 provison 방법을 사용할 수 있다. 이중 ansible을 이용하는 방법에 대하여 알아보자. Vagrantfile 내에 아래와 같이 ansible playbook.yml 파일 위치를 지정시켜준다. ansible을 지정하고 playbook의 위치를 지정한다. 기본적으로는 playbook이 필요하지만 필요에 따라 다른 설정(변수 지정 및 호스트 그룹 추가 등)을 추가할수 있다. https://www.vagrantup.com/docs/provisioning/ansible_intro.html Vagrant.configure(2) do |config| config.vm.provision "ansible" do |ansible| ansible.playbook = "provision/pla..
vagrant란? vagrant 홈페이지 첫 페이지에 나와있는 "Development Environments made easy"라는 문구에서 볼수 있듯이 손쉽게 개발 환경을 만들수 있게 도와주는 도구이다. 실제로 개발에 사용된 application이 설치되어 있거나 혹은 빈 Virtual Machine을 손쉽게 만들어서 개발에 사용할 수 있도록 해준다. https://www.vagrantup.com/ vagrant 사용법 ubuntu 19.04 를 laptop으로 사용하는 환경에서 KVM을 hypervisor로 하여 진행 아래와 같은 명령을 참고하여 사용한다. vagrant box list vagrant init vagrant up vagrant status vagrant halt vagrant dest..
- Total
- Today
- Yesterday
- openstacksdk
- hashicorp boundary
- boundary ssh
- ansible
- vmware openstack
- azure policy
- GateKeeper
- Helm Chart
- macvlan
- kubernetes install
- OpenStack
- aquasecurity
- openstack backup
- minio
- Terraform
- metallb
- kata container
- jenkins
- mattermost
- wsl2
- K3S
- ceph
- kubernetes
- Jenkinsfile
- nginx-ingress
- minikube
- DevSecOps
- socket
- open policy agent
- crashloopbackoff
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |