我无法远程创建Job(REST API + Postman),我尝试
开机自检:
http://localhost:8080/createItem?name=NEWJOB
要么
http://localhost:8080/job/NEWJOB/build
并且总是有403错误(GET方法起作用)。
在这里,我看到我需要为POST创建config.xml:
https://issues.jenkins-ci.org/browse/JENKINS-9410?focusedCommentId=204821&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-204821
我不明白如何创建此配置?我需要这个配置吗?如何远程创建jenkins Job?
在docker中,除了已安装的卷,容器数据还存储在哪里,直到容器运行。
因此,可以说/ usr / local是卷挂载的,因此它将在主机和容器之间共享。其他所有物品都存放在哪里?
试图部署我的第一个Web应用程序,并且难以通过SSH进入AWS.当我进入:
ssh -v -i ec2-myportfolio.pem root@ec2-23-23-165-24.compute-1.amazonaws.com
Run Code Online (Sandbox Code Playgroud)
我得到Permission denied(公钥).我在堆栈上看了几个其他的响应,就像 这样和这个,但是没有解决问题.以下是我得到的错误.在此先感谢您的帮助.
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
Warning: Identity file ec2-myportfolio.pem not accessible: No such file or directory.
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to ec2-23-23-165-24.compute-1.amazonaws.com [23.23.165.24] port 22.
debug1: Connection established.
debug1: identity file /Users/jonathanschen/.ssh/id_rsa type 1
debug1: identity file /Users/jonathanschen/.ssh/id_rsa-cert type -1
debug1: identity file /Users/jonathanschen/.ssh/id_dsa type -1
debug1: identity file /Users/jonathanschen/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software …Run Code Online (Sandbox Code Playgroud) 我有一个目录结构如下.
- app
Dockerfile
- target
- test_app.tar.gz
Run Code Online (Sandbox Code Playgroud)
tar.gz的提取将具有以下内容,
- lib
- conf
- bin
Run Code Online (Sandbox Code Playgroud)
我想提取并添加lib/*文件夹到docker镜像.
FROM docker.hub.com/alpine/jdk1.8:latest
RUN mkdir -p /service \
/service/app_lib \
/service/lib
COPY target/test_app.tar.gz /service/app_lib/
RUN cd /service/app_lib/
RUN tar -xzf test_app.tar.gz
RUN rm test_app.tar.gz
RUN cd lib
COPY * /service/lib/
RUN rm app_lib
Run Code Online (Sandbox Code Playgroud)
得到以下错误.
Step 5/11 : RUN tar -xzf test_app.tar.gz
---> Running in edde27a1cc60
tar (child): test_app.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child …Run Code Online (Sandbox Code Playgroud)