본문 바로가기
728x90
반응형

build5

[Qwiklabs]Scale Out and Update a Containerized Application on a Kubernetes Cluster Tasks Check that there is a tagged image in gcr.io for echo-app:v2 Echo-app:v2 is running on the Kubernetes cluster The Kubernetes cluster deployment reports 2 replicas. The application must respond to web requests with V2.0.0 1. 파일 압축 풀기 및 Docker Build - 압축 풀기 tar -xvzf resources-ehco-web-v2.tar.gz - PROJECT_ID 환경변수 등록 export PROJECT_ID=$(gcloud info --format='value(config.project)') - Image 를 .. 2020. 3. 26.
[Qwiklabs]Build and Deploy a Docker Image to a Kubernetes Cluster Tasks An application image with a v1 tag has been pushed to the gcr.io repository A new Kubernetes cluster exists (zone: us-central1-a) Check that an application has been deployed to the cluster Test that a service exists that responds to requests like Echo-app 1. 클러스터 생성 gcloud beta container --project "qwiklabs-gcp-00-337f72711928" clusters create "echo-cluster" --zone "us-central1-a" --no-ena.. 2020. 3. 26.
Docker build 할때 parameter 처리 방법 Spring boot Application 을 Dockerfile 로 build 할 때에 profile 값을 전달 해야해서 찾아본 것을 적어보았다. profile 값을 전달하기 위해서는 다음과 같은 방법들이 있다. 1.Dockerfile 에 profile 값을 넣고 build 를 한다. FROM java:8 ADD target/app.jar app.jar RUN bash -c 'touch /app.jar' ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=dev","-jar","/app.jar"] 2.Docker run 할때 환경 변수로 전달한다. docker run -d -p 8080:8080 -.. 2019. 8. 1.
[Gradle] gradle build error tool.jar... valid JDK Ubuntu 에서 Gradle 빌드 하는데 Error 가 났다. * What went wrong:Execution failed for task ':compileJava'.> Could not find tools.jar. Please check that /usr/lib/jvm/java-8-openjdk-amd64 contains a valid JDK installation.Error 내용을 보면 뭔가 찾을수 없다고 나온다.. tools.jar 파일.일단 설치된 자바 버전을 확인해 보자.java -versionopenjdk version "1.8.0_181"OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu0.16.04.1-b13)OpenJDK 6.. 2018. 10. 19.
unable to evaluate symlinks in Dockerfile path Docker 도큐먼트를 따라하다 보니 갑자기 에러가 난다. 분명 난 똑같이 붙여넣기 하고 그대로 한것 같은데.. https://docs.docker.com/get-started/part2/#build-the-app unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/ubuntu/study_docker/Dockerfile: no such file or directory 대체 왜나는 거지??? 분명 해석을 해보면 Dockerfile 이 저 위치에 없다는 이야기 인데...있는데 분명히.... 뭐~~~가 잘못된거지??? 헉!!! DockerFile........ 파일 이름이 Dockerfile 이 아닌 Doc.. 2018. 4. 1.
728x90
반응형