Delete the .git directory locally. Recreate the git repostory: $ cd (project-directory) $ git init $ (add some files) $ git add . $ git commit -m 'Initial commit' 3. Push to remote server, overwriting. Remember you're going to mess everyone else up doing this … you better be the only client. $ git remote add origin $ git push --force --set-upstream origin master
-
Delete the .git directory locally.
- Recreate the git repostory:
$ cd (project-directory)
$ git init
$ (add some files)
$ git add .
$ git commit -m 'Initial commit'
3. Push to remote server, overwriting. Remember you're going to mess everyone else up doing this … you better be the only client.
$ git remote add origin <url>
$ git push --force --set-upstream origin master
'Programming > Tools' 카테고리의 다른 글
google spread sheet에서 다른 파일의 내용을 import할 때 (0) | 2018.11.24 |
---|---|
docker-machine boot2docker sudo (0) | 2018.07.23 |
docker redis (836) | 2018.07.09 |
docker commands basic II (0) | 2018.07.09 |
docker command basic (756) | 2018.07.09 |
gradle 설치 #!/bin/sh gradle_version=”4.4-rc-5″ #Your Custom Installation Path install_target_path=”/opt/gradle” wget -N https://services.gradle.org/distributions/gradle-${gradle_version}-all.zip mkdir -p ${install_target_path} unzip gradle-${gradle_version}-all.zip mv gradle-${gradle_version} ${install_target_path}/ ln -sfn gradle-${gradle_version} ${install_target_path}/latest chown -R ec2-user:..
gradle 설치
#!/bin/sh
gradle_version=”4.4-rc-5″
#Your Custom Installation Path
install_target_path=”/opt/gradle”
wget -N https://services.gradle.org/distributions/gradle-${gradle_version}-all.zip
mkdir -p ${install_target_path}
unzip gradle-${gradle_version}-all.zip
mv gradle-${gradle_version} ${install_target_path}/
ln -sfn gradle-${gradle_version} ${install_target_path}/latest
chown -R ec2-user:ec2-user ${install_target_path}
printf “export GRADLE_HOME=${install_target_path}/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin” > /etc/profile.d/gradle.sh
. /etc/profile.d/gradle.sh
# check installation
gradle -v
gradlew 설치해도 아래와 같은 오류가 나올때는
[ec2-user@feedback-web1 feedback]$ ./gradlew
오류: 기본 클래스 org.gradle.wrapper.GradleWrapperMain을(를) 찾거나 로드할 수 없습니다.
gradle-wrapper.jar가 경로에 존재하는지 확인.
git add -f gradle/wrapper/gradle-wrapper.jar
'AWS' 카테고리의 다른 글
PATH 잘못 update했을때 복원 (0) | 2020.10.16 |
---|---|
AWS scp (815) | 2020.10.16 |
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin
'AWS' 카테고리의 다른 글
AWS에서 gradle 설치 & 확인 (386) | 2020.10.16 |
---|---|
AWS scp (815) | 2020.10.16 |
scp -i /directory/to/abc.pem /your/local/file/to/copy ec2-user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/file medium.com/@dearsikandarkhan/files-copying-between-aws-ec2-and-local-d07ed205eefa#:~:text=Copying%20files%20from%20local%20to%20EC2&text=To%20copy%20files%20between%20your,Unix%2FLinux%2FMac%20system. Files exchanging between AWS EC2 and your local machine Copying files from loca..
scp -i /directory/to/abc.pem /your/local/file/to/copy ec2-user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/file
'AWS' 카테고리의 다른 글
AWS에서 gradle 설치 & 확인 (386) | 2020.10.16 |
---|---|
PATH 잘못 update했을때 복원 (0) | 2020.10.16 |
dependencies에 annotationProcess를 lombok으로 설정 dependencies { ... annotationProcessor('org.projectlombok:lombok') testAnnotationProcessor('org.projectlombok:lombok') ... }
dependencies에 annotationProcess를 lombok으로 설정
dependencies {
...
annotationProcessor('org.projectlombok:lombok')
testAnnotationProcessor('org.projectlombok:lombok')
...
}
'Programming > Java' 카테고리의 다른 글
mac에서 자바 여러개 설치 사용 (0) | 2018.06.12 |
---|---|
Test Compile시 Unable to find a @SpringBootConfiguration... 나올때 (0) | 2017.11.07 |
=importRange("SheetKey", "SheetKey!A1:A10") 함수를 이용함. https://webapps.stackexchange.com/questions/786/how-do-i-link-a-cell-in-google-spreadsheets-to-a-cell-in-another-document =importRange("1ruiLBP1a_E30K2GQQrCBmruHLQ2w2S8joELmTilqsIQ","개발팀!A1:Z100")
=importRange("SheetKey", "SheetKey!A1:A10") 함수를 이용함.
=importRange("1ruiLBP1a_E30K2GQQrCBmruHLQ2w2S8joELmTilqsIQ","개발팀!A1:Z100")
'Programming > Tools' 카테고리의 다른 글
git repository commit 내역 reset 하고 새로 시작하기 (0) | 2020.10.19 |
---|---|
docker-machine boot2docker sudo (0) | 2018.07.23 |
docker redis (836) | 2018.07.09 |
docker commands basic II (0) | 2018.07.09 |
docker command basic (756) | 2018.07.09 |
https://discussions.agilebits.com/discussion/90667/cant-close-1password-7-osx-10-13-4 ps aux | grep -i 1pass ; sudo kill -9
https://discussions.agilebits.com/discussion/90667/cant-close-1password-7-osx-10-13-4
ps aux | grep -i 1pass ; sudo kill -9 <PID_OF_1Password>
'OS' 카테고리의 다른 글
ubuntu 방화벽 설정 (0) | 2018.01.25 |
---|---|
Windows에서 제어판에 앱목록에는 있으나 제거 버튼이 활성화 안되는 경우 (399) | 2018.01.13 |
Mac Screen Saver Shortcut 설정하기 (0) | 2017.12.04 |
docker@default:~$ sudo -i Boot2Docker version 1.10.2, build master : 611be10 - Mon Feb 22 22:47:06 UTC 2016 Docker version 1.10.2, build c3959b1 root@default:~# https://stackoverflow.com/questions/32646952/docker-machine-boot2docker-root-password
docker@default:~$ sudo -i
Boot2Docker version 1.10.2, build master : 611be10 - Mon Feb 22 22:47:06 UTC 2016
Docker version 1.10.2, build c3959b1
root@default:~#
https://stackoverflow.com/questions/32646952/docker-machine-boot2docker-root-password
'Programming > Tools' 카테고리의 다른 글
git repository commit 내역 reset 하고 새로 시작하기 (0) | 2020.10.19 |
---|---|
google spread sheet에서 다른 파일의 내용을 import할 때 (0) | 2018.11.24 |
docker redis (836) | 2018.07.09 |
docker commands basic II (0) | 2018.07.09 |
docker command basic (756) | 2018.07.09 |
$ docker pull redis -d는 컨테이너를 백그라운드로 실행하라는 것 $ docker run --name myredis -d redis $ docker logs 809b11ac4b561:C 09 Jul 03:10:54.232 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo1:C 09 Jul 03:10:54.232 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=1, just started1:C 09 Jul 03:10:54.232 # Warning: no config file specified, using the default config. In order to specify a confi..
$ docker pull redis
-d는 컨테이너를 백그라운드로 실행하라는 것
$ docker run --name myredis -d redis
$ docker logs 809b11ac4b56
1:C 09 Jul 03:10:54.232 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 09 Jul 03:10:54.232 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 09 Jul 03:10:54.232 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 09 Jul 03:10:54.233 * Running mode=standalone, port=6379.
1:M 09 Jul 03:10:54.233 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 09 Jul 03:10:54.233 # Server initialized
1:M 09 Jul 03:10:54.233 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 09 Jul 03:10:54.233 * Ready to accept connections
redis-cli 용 컨테이너 실행
--link myredis:redis myredis container를 새로운 컨테이너에서 redis라는 이름으로 참조하라 (docker는 컨테이너 /etc/hosts에 redis를 위한 진입점을 생성하고 myredis의 IP를 가리키게 한다. 이로서 Redis container의 IP 주소를 전달하거나 찾을 필요없이 redis-cli에서 redis라는 호스트 명으로 접근 가능해진다. )
--rm 컨테이너가 종료되면 자동으로 컨테이너를 삭제한다. -d와는 같이 사용될수 없다.
-it interactive, pseudo tty mode
$ docker run --rm -it --link myredis:redis redis /bin/bash
root@06589652dbfd:/data# redis-cli -h redis -p 6379
redis:6379> ping
PONG
redis:6379> set "abc" 123
OK
redis:6379> get "abc"
"123"
redis:6379> exit
'Programming > Tools' 카테고리의 다른 글
google spread sheet에서 다른 파일의 내용을 import할 때 (0) | 2018.11.24 |
---|---|
docker-machine boot2docker sudo (0) | 2018.07.23 |
docker commands basic II (0) | 2018.07.09 |
docker command basic (756) | 2018.07.09 |
lombok.javac.apt.LombokProcessor could not be initialized. Lombok will not run during this compilation (0) | 2018.06.12 |
$ docker run -it --name cowsay --hostname cowsay debian bashroot@cowsay:/# apt-get updatecowsay fortuneroot@cowsay:/# apt-get install -yroot@cowsay:/# /usr/games/fortune | /usr/games/cowsay ________________________________________/ ... A solemn, unsmiling, sanctimonious \| old iceberg who looked like he was || waiting for a vacancy in the Trinity. || |\ -- Mark Twain / --------------------------..
$ docker run -it --name cowsay --hostname cowsay debian bash
root@cowsay:/# apt-get update
cowsay fortuneroot@cowsay:/# apt-get install -y
root@cowsay:/# /usr/games/fortune | /usr/games/cowsay
________________________________________
/ ... A solemn, unsmiling, sanctimonious \
| old iceberg who looked like he was |
| waiting for a vacancy in the Trinity. |
| |
\ -- Mark Twain /
----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
$ docker commit cowsay test/cowsayimage
sha256:a07478457b89f1ae08fc65360987d3a675e544e1d0333c0fea21f36b7f5a6bd9
$ docker run test/cowsayimage /usr/games/cowsay "Moo"
_____
< Moo >
-----
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
$ cat Dockerfile
FROM debian:wheezy
RUN apt-get update && apt-get install -y cowsay fortune
$ docker build -t test/cowsay-dockerfile .
$ docker run test/cowsay-dockerfile /usr/games/cowsay "Moo"
_____
< Moo >
-----
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
$ docker info
Containers: 9
Running: 1
Paused: 0
Stopped: 8
Images: 16
Server Version: 18.03.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.87-linuxkit-aufs
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.952GiB
Name: linuxkit-025000000001
ID: ZD3Z:I2BF:UXMM:SEHS:NZZ4:ZQVK:U7XJ:GHUX:O5WJ:DXBW:A7RQ:U2ZT
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 22
Goroutines: 41
System Time: 2018-07-09T02:19:20.006046842Z
EventsListeners: 2
HTTP Proxy: docker.for.mac.http.internal:3128
HTTPS Proxy: docker.for.mac.http.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
docker run하면 특정 command 실행시키도록 ENTRYPOINT 지정
$ cat Dockerfile
FROM debian:wheezy
RUN apt-get update && apt-get install -y cowsay fortune
ENTRYPOINT ["/usr/games/cowsay"]
$ cat entrypoint.sh
#!/bin/bash
if [ $# -eq 0 ]; then
/usr/games/fortune | /usr/games/cowsay
else
/usr/games/cowsay "$@"
fi
$ cat Dockerfile
FROM debian:wheezy
RUN apt-get update && apt-get install -y cowsay fortune
# copy host's entrypoint.sh to image's file system
# 1st arg is host's file, 2nd arg is image's path
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
$ chmod +x entrypoint.sh
$ docker build -t xxxx/cowsay .
Sending build context to Docker daemon 3.072kB
Step 1/4 : FROM debian:wheezy
---> 8f8122a1c206
Step 2/4 : RUN apt-get update && apt-get install -y cowsay fortune
---> Using cache
---> 249f7a895e02
Step 3/4 : COPY entrypoint.sh /
---> Using cache
---> 17256aa54c11
Step 4/4 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> 7af0d077f7e6
Successfully built 7af0d077f7e6
Successfully tagged xxxx/cowsay:latest
$ docker push xxxx/cowsay
The push refers to repository [docker.io/xxxx/cowsay]
cac0325bc52a: Pushed
02e661870bb0: Pushed
76d132c56f63: Mounted from library/debian
latest: digest: sha256:4e7b218528ab9abb6bd5d6e896f1834d3304114bcee23367b5c6b9b18a9fe29d size: 948
$ docker build -t xxxx/cowsay:stable
$docker pull xxxx/cowsay
'Programming > Tools' 카테고리의 다른 글
docker-machine boot2docker sudo (0) | 2018.07.23 |
---|---|
docker redis (836) | 2018.07.09 |
docker command basic (756) | 2018.07.09 |
lombok.javac.apt.LombokProcessor could not be initialized. Lombok will not run during this compilation (0) | 2018.06.12 |
Intellij build를 gradle로 위임하기 (575) | 2018.06.12 |
- Total
- Today
- Yesterday
- ansible-container
- git
- Spring Boot
- mecab
- pycharm
- kubernetes
- pymongo
- IntelliJ
- xpath
- PubSub
- GCP
- docker-machine
- X-Pack
- 은전한닢
- boot2docker
- zsh
- Ansible
- docker
- Netty
- PIP
- TDD
- Redis
- MacOS
- Elasticsearch
- AWS
- Python
- MongoDB
- Paw
- spring #lombok
- scrapy
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |