| Title | Description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node | |
MAINTAINER KH BYUN "novemberde.github.io" | |
RUN npm install -g pm2 node-gyp | |
ENV NODE_ENV production | |
EXPOSE 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM redis | |
ENTRYPOINT [ "redis-cli" ] | |
CMD [ "--help" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 도커 이미지 리스트 보기 | |
docker images | |
# 실행하고 있는 컨테이너 보기 | |
docker ps | |
# 모든 컨테이너 보기 | |
docker ps -a | |
# 컨테이너를 실행하기 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE test ( | |
id INT(11) unsigned NOT NULL AUTO_INCREMENT, | |
name VARCHAR(32) NOT NULL, | |
PRIMARY KEY (id) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set ai | |
set history=100 | |
set title | |
set nu | |
set cindent | |
set ts=4 | |
set shiftwidth=4 | |
" Syntax Highlighting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type logFormatter struct{} | |
type logEntry struct { | |
userAgent string | |
method string | |
addr string | |
path string | |
} | |
func (l logFormatter) NewLogEntry(r *http.Request) middleware.LogEntry { | |
le := logEntry{ |