mirror of https://github.com/grpc/grpc-java.git
Use `docker cp` to copy files to docker containers.
`scp` won't work anymore on google workstations.
This commit is contained in:
parent
4aee912bce
commit
2bd0887db3
16
RELEASING.md
16
RELEASING.md
|
|
@ -126,13 +126,15 @@ system. Make sure to have at least version 1.7.1 or later.
|
|||
made (e.g., copied configuration files) will be lost. If you want to keep the
|
||||
container, remove `--rm=true` from the command line.
|
||||
4. Next, you'll need to copy your OSSRH credentials and GnuPG keys to your docker container.
|
||||
Run `ifconfig` in the host, find the IP address of the `docker0` interface.
|
||||
Then in Docker:
|
||||
|
||||
```bash
|
||||
$ scp -r <your-host-user>@<docker0-IP>:./.gnupg ~/
|
||||
$ mkdir ~/.gradle
|
||||
$ scp -r <your-host-user>@<docker0-IP>:./.gradle/gradle.properties ~/.gradle
|
||||
In Docker:
|
||||
```
|
||||
# mkdir /root/.gradle
|
||||
```
|
||||
Find the container ID in your bash prompt, which is shown as `[root@<container-ID> ...]`.
|
||||
In host:
|
||||
```
|
||||
$ docker cp ~/.gnupg <container-ID>:/root/
|
||||
$ docker cp ~/.gradle/gradle.properties <container-ID>:/root/.gradle/
|
||||
```
|
||||
|
||||
You'll also need to update `signing.secretKeyRingFile` in
|
||||
|
|
|
|||
Loading…
Reference in New Issue