CM(61)
-
Dockerfile 명령어 정리
봐도 봐도 잘 까먹는 Dockerfile 명령어..정리 해보았습니다. Dockerfile 포맷 #주석 명령어(INSTRUCTION) 인자(arguments) ex) #dockerfile format ex FROM ubuntu:latest FROM 명령어 FROM FROM : 하나의 Docker image는 base 이미지부터 시작해서 기존 이미지 위에 새로운 이미지를 중첩해서 여러 단계의 이미지 층(layer)을 쌓아가며 만들어 집니다. FROM 명령어는 이 base image를 지정해주기 위해서 사용되고 보통 Dockerfile 내에서 최상단에 위치 합니다. base image는 일반적으로 Docker Hub 등 공개 이미지인 경우가 많음. ex) FROM node:12 FROM python:3.8-a..
2022.06.10 -
gradle - Could not resolve all dependencies for configuration ':detachedConfiguration4'.Using insecure protocols with repositories, without explicit opt-in, is unsupported.
넥서스에 있는 것을 가져오려는데 오류가 났다. 에러발생 Could not resolve all dependencies for configuration ':detachedConfiguration4'.Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://maven.xxx.com/어쩌구저쩌구)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.4.1/dsl/org.gradle.api.artifacts.repo..
2022.05.09 -
gradlew clean build 시 error 발생(java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor)
mac에서 IDE가 아닌 gradlew로 빌드 시키려는데 아래와 같이 오류가 발생했다. 현재 mac에서 jdk는 디폴트로 11을 사용하고 있었는데 git clone 받은 프로젝트는 jdk 8을 사용하고 있었다. > Task :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x57e49654) cannot access class com.sun.tools.javac.processi..
2022.04.11 -
git - 중요한 file을 모르고 push했을땐?
1. 임의로 test.pem을 생성하여 push하였다. 2. test.pem이 알고봤더니 정말 중요한 파일 이였다! 예를 들어 나의 비밀번호들이 저장되어있다..!! 3. 삭제를 하기 위해서는 아래와 같은 git filter-branch명령어를 사용 합니다. git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch src/main/resources/test.pem' --prune-empty -- --all git rm --cached는 원격지 브랜치에 있는 파일을 삭제 해줍니다. git rm 로컬과 원격지 둘다 삭제. 여기에는 로컬에는 남아있어도 되지만 원격지에 올라가면 안되기때문에 --cached 옵션을 사용한 것이다. --ignore-..
2022.03.03 -
AWS - 무중단 배포를 위한 NginX를 사용해보자
1. ec2에 nginx install 먼저 sudo yum update -y로 업데이트 한 뒤 sudo yum install nginx 를 하면 아래와 같은 오류가 발생한다. sudo amazon-linux-extras install nginx1으로 다시 해보자. [ec2-user@acet-springboot-webservice ~]$ sudo amazon-linux-extras install nginx1 Installing nginx Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-kernel-5.10 amzn2extra-n..
2022.03.01 -
git push error
git에 push를 하려는데 아래와 같은 오류 발생! rejected!! 대~충 읽어보니 git push전에 git pull을 하라고 한다 git push -u origin master To https://github.com/pthahaha/rest-api-study.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/pthahaha/rest-api-study.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Inte..
2022.02.25