Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit fddb954

Browse files
author
pascal
committed
Mv SSH key to shared volume
1 parent c6c670e commit fddb954

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ jobs:
5555
- sudo mv /tmp/mkcert /usr/local/bin
5656
- sudo chmod +x /usr/local/bin/mkcert
5757
script:
58-
- - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
58+
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
5959
- /bin/sh docker-images/export.sh latest --push
60-
- - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
60+
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
6161
- /bin/sh templates/prebuild.sh --push
6262
- yarn oclif-dev pack
6363
deploy:

src/commands/start.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,15 @@ export default class StartCmd extends BaseCmd {
125125
const existing = execSync(this.dockerBin + ' exec ' + containerName + ' cat /home/ce-dev/.ssh/config').toString()
126126
const config: Array<string> = []
127127
this.activeProjectInfo.ssh_hosts.forEach(host => {
128-
const dest = '/dev/shm/' + host.host
128+
const dest = '/home/ce-dev/.ssh/' + host.host
129129
const entry = [
130130
'Host ' + host.host,
131131
'User ' + host.user,
132132
'IdentityFile ' + dest,
133133
'',
134134
]
135135
config.push(...entry)
136-
execSync(this.dockerBin + ' cp ' + host.src_key + ' ' + containerName + ':/tmp/' + host.host, {stdio: 'inherit'})
137-
execSync(this.dockerBin + ' exec ' + containerName + ' mv /tmp/' + host.host + ' ' + dest, {stdio: 'inherit'})
136+
execSync(this.dockerBin + ' cp ' + host.src_key + ' ' + containerName + ':' + dest, {stdio: 'inherit'})
138137
})
139138
fs.writeFile(this.tmpSSHConfigFile, existing + config.join('\n') + '\n', () => {
140139
execSync(this.dockerBin + ' cp ' + this.tmpSSHConfigFile + ' ' + containerName + ':/home/ce-dev/.ssh/config', {stdio: 'inherit'})

0 commit comments

Comments
 (0)