도커 이미지(tar) 크기 확인하는 방법은 다음과 같다. 



1. docker history 


$ docker history rabbitmq:management

IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT

df6f26ea3e53        4 months ago        /bin/sh -c #(nop)  EXPOSE 15671 15672           0B

<missing>           4 months ago        /bin/sh -c set -eux;  erl -noinput -eval '  …   29.5MB

<missing>           4 months ago        /bin/sh -c rabbitmq-plugins enable --offline…   23B

<missing>           4 months ago        /bin/sh -c #(nop)  CMD ["rabbitmq-server"]      0B

<missing>           4 months ago        /bin/sh -c #(nop)  EXPOSE 25672 4369 5671 56…   0B

<missing>           4 months ago        /bin/sh -c #(nop)  ENTRYPOINT ["docker-entry…   0B

<missing>           4 months ago        /bin/sh -c #(nop) COPY file:379f3802e5612ff1…   12.2kB

<missing>           4 months ago        /bin/sh -c #(nop)  ENV LANG=C.UTF-8 LANGUAGE…   0B

<missing>           4 months ago        /bin/sh -c #(nop)  VOLUME [/var/lib/rabbitmq]   0B

<missing>           4 months ago        /bin/sh -c #(nop)  ENV HOME=/var/lib/rabbitmq   0B

<missing>           4 months ago        |1 PGP_KEYSERVER=ha.pool.sks-keyservers.net …   21B

<missing>           4 months ago        |1 PGP_KEYSERVER=ha.pool.sks-keyservers.net …   12.6MB

<missing>           4 months ago        /bin/sh -c #(nop)  ENV PATH=/opt/rabbitmq/sb…   0B

<missing>           4 months ago        /bin/sh -c #(nop)  ENV RABBITMQ_HOME=/opt/ra…   0B

<missing>           4 months ago        /bin/sh -c #(nop)  ENV RABBITMQ_PGP_KEY_ID=0…   0B

<missing>           4 months ago        /bin/sh -c #(nop)  ENV RABBITMQ_VERSION=3.7.…   0B

<missing>           4 months ago        |1 PGP_KEYSERVER=ha.pool.sks-keyservers.net …   393kB

<missing>           4 months ago        /bin/sh -c #(nop)  ENV RABBITMQ_DATA_DIR=/va…   0B

<missing>           4 months ago        |1 PGP_KEYSERVER=ha.pool.sks-keyservers.net …   79MB

<missing>           4 months ago        /bin/sh -c #(nop)  ENV OTP_SOURCE_SHA256=122…   0B

<missing>           4 months ago        /bin/sh -c #(nop)  ENV OTP_VERSION=21.3.5       0B

<missing>           5 months ago        /bin/sh -c #(nop)  ENV OPENSSL_PGP_KEY_ID=0x…   0B

<missing>           5 months ago        /bin/sh -c #(nop)  ENV OPENSSL_SOURCE_SHA256…   0B

<missing>           5 months ago        /bin/sh -c #(nop)  ENV OPENSSL_VERSION=1.1.1b   0B

<missing>           5 months ago        /bin/sh -c #(nop)  ARG PGP_KEYSERVER=ha.pool…   0B

<missing>           5 months ago        /bin/sh -c set -eux;  apt-get update;  apt-g…   2.51MB

<missing>           5 months ago        /bin/sh -c #(nop)  CMD ["/bin/bash"]            0B

<missing>           5 months ago        /bin/sh -c mkdir -p /run/systemd && echo 'do…   7B

<missing>           5 months ago        /bin/sh -c rm -rf /var/lib/apt/lists/*          0B

<missing>           5 months ago        /bin/sh -c set -xe   && echo '#!/bin/sh' > /…   745B

<missing>           5 months ago        /bin/sh -c #(nop) ADD file:1d7cb45c4e196a6a8…   88.9MB



2.  docker save 


$ docker save rabbitmq:management | gzip | wc -c

 88612225




실제로 컨테이너(파일 디스크) 크기를 알고 싶다면 다음 커맨드를 사용한다.


1. docker inspect


$ docker image inspect rabbitmq:management --format='{{.Size}}'

212906551



2. docker ps


$  docker ps --size | grep rabbit

f1c3080202f1        rabbitmq:management   "docker-entrypoint.s…"   29 hours ago        Up 29 hours         4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, 15671/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp   docker_rabbit_1      190B (virtual 213MB)



Posted by '김용환'
,


Throwing the release over the wall


특정 팀에서 릴리즈의 일부를 완료한 후 거의 의사 소통 없이 다음 팀으로 전달하는 것을 말한다.


일의 규모와 상관없이 아무 영혼 없이 내 일만 다하면 되었지 하고 의사소통 없이 넘긴다.


따라서 어떠한 의사 소통이 없기 때문에 문제가 생겨도 그대로 진행하고 끝난다. 


따라서 고객이 행복하기 보다는 그냥 요구사항의 문제가 끝나는 경우가 많다.


부정적으로 자기 일만 하는 상황을 말하는 부정적인 경우에 쓰이는 것 같다. 



Posted by '김용환'
,



Stalemate는 교착 상태를 일컫는 단어이다.


보통은 북미 대화의 교착 상태의 교착 상태를 stalemate를 일반적으로 말한다.


또는 기업 간에서도 쓰인다. 

http://www.traveltimes.co.kr/news/articleView.html?idxno=88685\

경쟁기업 간의 차별화나 경쟁우위의 요소가 미미한 경우, 이들의 경쟁은 결국 모든 기업을 실패로 몰아가기 마련이다. 어떤 기업도 다른 기업들과 뚜렷하고 지속적인 경쟁력이나 경쟁우위를 얻지 못하면 결과적으로 모든 기업들이 막다른 골목 교착상태(stalemate)에 빠진다는 것이다


또한 IT 운영에서도 사용되는 단어이다. 


교착 상태(stalemate)는 시스템 담당자는 특정 그룹이 실행한 빌드를 깨뜨리지 않도록 다른 그룹의 설정 관리 스크립트를 업데이트하는 것을 꺼려하는 것을 말한다. 따라서 업데이트 속도가 느려질수록 팀은 더욱 당황할 것이다.


'영어앤영문권' 카테고리의 다른 글

snowflask system(눈송이 시스템)  (0) 2019.08.16
개발자 영어 - HTTP의 조건부 GET(conditional get)  (0) 2018.08.31
self-contained system (SCS) 번역  (0) 2018.08.28
authz, authn  (0) 2018.08.10
BYOD  (0) 2018.07.28
Posted by '김용환'
,



springboot2-thymeleaf 사용 예제를 다룬 코드를 참고한다.


https://www.mkyong.com/spring-boot/spring-boot-hello-world-example-thymeleaf/



실수하기 좋은 부분은 다음과 같다. 


1. html 파일에 다음을 추가해야 한다.

<html lang="ko" xmlns:th="http://www.thymeleaf.org">


2. th를 잘 사용한다.

velocity에서 아래와 같이 사용했다면..

  <span class="item">${link.itemName}</span>


아래와 같이 th:text를 사용한다.

<span class="item" th:text="${link.itemName}"></span>



3, 

velocity에서 아래와 같이 사용했다면..


    <span class="image" style="background-image:url(${link.thumbnail})"></span>


아래와 같이 th:style과 콜럼을 잘 사용해야 한다. 실수하기 가장 쉬운 곳이 아래 빨간색 색칠한 부분이다.

<span class="image" th:style="'background-image:url(' + ${link. thumbnail} + ');'"></span>


Posted by '김용환'
,


list/set/dict comprehension 예시



# list comprehension
print([x for x in range(5)])

print([x*2 for x in range(5) if x != 1])

print(["You are good, " + x for x in ["Zero, Jonathan"]])

#결과
#[0, 1, 2, 3, 4]
#[0, 4, 6, 8]
#['You are good, Zero, Jonathan']

# set comprehension

print({"You are good, " + x for x in ["Zero, Zero"]})

# 결과
# {'You are good, Zero, Zero'}

# dictionary comprehension
score = [('merlin', 90), ('zero', 80), ('samuel', 95)]
print({x[0]: x[1] for x in score})

# 결과
# {'merlin': 90, 'zero': 80, 'samuel': 95}


# generator expression
gen = (x+1 for x in range(5))
print(gen)
print(next(gen))
print(next(gen))
print(next(gen))

# 결과
# <generator object <genexpr> at 0x103721570>
# 1
# 2
# 3


여기에 sum을 사용해 lambda 처럼 비슷하게 사용할 수 있다. 

print([1 for x in range(5)])
#[1, 1, 1, 1, 1]

print(sum([1 for x in range(5)]))
#5


Posted by '김용환'
,


어벤져스 엔드게임 중에 좋았던 대사


Thor's mother: A failure? Absolutely. 

                         실패라고 한다면 맞지. 완전히 실패했지. 


Thor : That's a little bit harsh. 

           너무 막말하시네요. 어머니. 


Thor's mother: Do you know what that makes you? Just like everyone else.

                       그 실패가 무엇을 알려준 줄 아니? 그저 다른 사람과 같아지는 것일 뿐이야. 


Thor : I'm not supposed to be like everyone else, am I? 

          내가 대단한 뭔가가 될 수 없다는 의미인가요. 제가요?


Thor's mother: Everyone fails at who they're supposed to be, Thor. The measure of a person a hero is how well they succeed at being who they are. 

                        모든 사람은 되고 싶은 뭔가에 되는 걸 실패한단다. 토르..

                        히어로의 척도는 스스로 얼마나 자신의 존재로서 성공하느냐에 달려있단다.


'영화를 보고' 카테고리의 다른 글

"아름다운 것들은 관심을 바라지 않지"  (0) 2018.11.21
[더스토리] 영화의 기억나는 대사  (0) 2018.06.26
레디 플레이어 원  (0) 2018.04.04
칠드런 오브 맨  (0) 2016.10.25
[마이크롭 앤 가솔린]  (0) 2016.07.02
Posted by '김용환'
,



spring boot2  (Spring Framework 5)부터 지원하지 않는 게 있다..



https://github.com/spring-projects/spring-framework/wiki/What%27s-New-in-Spring-Framework-5.x#removed-packages-classes-and-methods


Dropped support: Portlet, Velocity, JasperReports, XMLBeans, JDO, Guava.

Recommendation: Stay on Spring Framework 4.3.x for those if needed.


Posted by '김용환'
,


JPA 개발을 편리하게 해주는 querydsl 라이브러리는 2018년 중순 개발이 멈췄고,

querydsl 의 gradle 라이브러리는 조심스럽게 써야 한다. querydsl gradle 개발회사인 ewerk가 망하면서.. 자연스럽게 개발이 멈춰졌다. 



https://github.com/ewerk/gradle-plugins


EWERK Gradle Plugins

NOTE: The plugins are currently not compatible to Gradle 5+ and have not been tested with a JDK higher than 1.8. Currently a lot of issues arise related to using the plugins with Gradle 5+. There are plans to adopt the plugins to the newest Gradle API but time is lacking. Help is pretty much appreciated. Please see https://github.com/ewerk/gradle-plugins/milestone/1.



jdk 10+, gradle 5+를 써도 컴파일되긴 한다... 다만 안정성은 보장 못하니.. 조심하게 사용할 필요가 있다. 


Posted by '김용환'
,


springboot 에서 아래와 같은 에러가 발생한다면.


Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.




다음과 같이 드라이브 클래스 이름부터 제대로 추가했는지 확인하다.



spring.datasource.driver-class-name: com.mysql.jdbc.Driver
spring.datasource...
....



Posted by '김용환'
,
Posted by '김용환'
,