[Docker] 도커 튜토리얼 따라해보기
도커 설치 https://docs.docker.com/docker-for-mac/install/ Docker.dmg 받아서 설치 잘설치되었는지 버전 확인해봤다 $ docker —version 아래 명령어는 더 상세히 보기. $ docker info hello-world 실행해봤다 $ docker run hello-world $ docker run –detach...
황트루치
도커 설치 https://docs.docker.com/docker-for-mac/install/ Docker.dmg 받아서 설치 잘설치되었는지 버전 확인해봤다 $ docker —version 아래 명령어는 더 상세히 보기. $ docker info hello-world 실행해봤다 $ docker run hello-world $ docker run –detach...
FROM FROM <image>:<tag> 초기 설정 이미지를 초기화한다. 파일의 첫줄은 반드시 FROM으로 시작해야한다. 복수의 FROM 선언도 가능. tag를 생략하며녀 lastest를 기본으로 가져온다. ENV ENV <key> <value> ENV myDog ZooZoo 환경 변수...
@SpringBootApplication @ComponentScan, @Configuration, @EnableAutoConfiguration 세개를 합쳐놓은 것(1.2.0 이후 적용) Class @EnavleAutoConfiguration 스프링부트 자동구성하도록 Class @EnableCaching 캐시ON @EnableBatchProcessing 스프링배치 @EnableWebSecurity 스프링 시큐리티 @EnableRedisHttpSession...
매번 인텔리J를 사용하다보니 좋은 spring cli제공이 되는데도 잘 안쓰게 됨;; sdkman $ curl -s get.sdkman.io | bash $ source “$HOME/.sdkman/bin/sdkman-init.sh” $ sdk install springboot $ spring –version $ mkdir spring-boot-simple...
개발 Phase등,, 변경에 따라 JOB네임을 일괄 변경해야 할 경우 아래와 같이 작성하여 Script실행 ^^;; // Groovy script to rename job in Hudson import hudson.model.*; def QA_JOB_PATTERN = ~/^QA_.*$/; //find all...
Git 브랜치 Diff로 변경점을 파악하여 파일리스트만 따로 빼낸다. git diff –name-only origin/master origin/develop > /home/fileList.lst 재가공이 필요하다면 필요에 따라 sed써서 replace.. sed -i ‘s/src\/main\/webapp\//\/www\/html\//g’ /home/fileList.lst 3. Active Choices...
ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ” https://linux.die.net/man/1/ssh-keygen ssh-keygen [-q] [-b bits] -t type [-Nnew_passphrase] [-C comment] [-foutput_keyfile] ssh-keygen -p [-P old_passphrase] [-Nnew_passphrase] [-f keyfile] ssh-keygen -i [-f input_keyfile] ssh-keygen -e [-f input_keyfile] ssh-keygen -y [-f input_keyfile] ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] ssh-keygen -l [-f input_keyfile] ssh-keygen -B [-f input_keyfile]...
API서비스가 복잡하게 증가하다보면 버전관리 문제는 피할수가 없다. 나중에 생각할게 아니라 규칙을 정해 미리 적용한다면, 구웃. 버전 명명 규칙을 굳이 정하자면 아래와 같을 수 있고 /api/v3/greetings // 서비스 수준 /api/v3/greetings/v3.1/hello //...
spring.security.user.name=user spring.security.user.password=1234 package com.htrucci.bootsecurity; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @SpringBootApplication public class BootsecurityApplication { public static void main(String[] args) { SpringApplication.run(BootsecurityApplication.class, args); } } @RestController class...
More
최근 댓글