New WEBAPI-Open Http://localhost:5000/api/values in browser to see if it runs successfullyCreate DockerfileFrom Microsoft/aspnetcore:2.0As Baseworkdir/Appexpose theFrom Microsoft/aspnetcore-build:2.0As Buildworkdir/srccopy. RUN dotnet Restoreworkdir/Srcrun dotnet Build-C Release-o/Appfrom Build as Publishrun dotnet publish-C Release-o/Appfrom Base as Finalworkdi
{public dbset public class Tbuser { [databasegenerated (Databasegeneratedoption.none)] public int ID {get; set;} public string Nickname {get; set;} public string Email {get; set;} } public class Tbuserdatahandle:datacontext {public static int adduser (Tbuser user) {try {using (var context = new DataContext ()) {context. Database.ensurecreated (); Context. ADD (user); Context. SaveChanges ();
Use of Docker-related Jenkins plug-insJenkins plug-ins related to Docker use Jenkins plug-ins related to Docker
Search for Docker-related plug-ins on the Jenkins Plugin page, which incl
#docker build Image (Dockerfile)
CentOS 7.4.1078 Image Maker
Nginx image creation (based on front centos7 image)
nginx+php Image Production
For more walkthrough, s
1, modify httpd.confNote characters before the following two lines are removed: #LoadModule proxy_module modules/mod_proxy.so#loadmodule proxy_http_module modules/mod_proxy_http.so2, adding proxy rulesAt the end of the httpd.conf file, add a forwarding rule for example: Proxypass/baidu Http://www.baidu.comProxyPassReverse/baidu http://www.baidu.com will/ Baidu start of the request forwarded to the homepage3, after the configuration file is changed, create the dockerfile in the sibling directory.
This is a creation in
Article, where the information may have evolved or changed.
Blog Address: yeqown.github.com
Cause
Because production needs have recently re-toss Jenkins and Docker. The main purpose is to automatically compile, package, and deploy some Golang httpserver. So decided to use Jenkins to do this continuous integration carrier, choose
ObjectiveDevOps articles are very early to share, squeeze a little time to build some of the previous time to improve the development of the efficiency of things to share with you.This article describes a. Netcore MVC Web project, starting from project push to GitHub
Automatically pull the replacement code from GitHub
Compile, build, publish
Stop the Do
Jenkins configuration file Backup:Docker CP Focused_bhaskara:/var/jekins_home./jenkins_homeWhere Focused_bhaskara is the name of the currently running Jenkins container and is available through Docker PS viewing names.Docker create-v/var/jenkins_home--name JENKINS-DVMake the data volume container and run:1. Jenkins_hom
/copy /webapps/hello.txt/opt/webapps/------- ---here to hello.txt the updated code, to the relevant directory of the image, for resin use. Expose8080entrypointsh/opt/scripts/resin.shstart/bin/bash 3:jenkins the required build script, where the script is relatively simple, mainly the incoming IP, project, version three parameters. Pull the code, make the
can be displayed in the History building list, and the corresponding version can be installed directly by scanning the QR code by mobile phone.
In the Build results page, the results of the build (Artifact, such as,,, and so on) are displayed .ipa .app .apk info.plist for download by users who need it.
Next, this article begins to introduce the complete realization process of the platform construc
Wrote an article about Jenkins integrated Docker very early, using the cloudbees Docker Build and Publish plugin plugin. This article is done directly with the shell script, mainly this time there is a need to detect whether the harbor warehouse is already existing to build
You may not have figured out what Jenkins can do.This section uses Jenkins to complete the build, test, and deployment of the Python program, giving you an intuitive understanding of what Jenkins can do.The contents of this section are rewritten from https://jenkins.io/doc/tutorials/
This is a creation in
Article, where the information may have evolved or changed.
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/53816615 not allowed to reprint without the Bo master.Bo main address is: Http://blog.csdn.net/freewebsys
1, installing Jenkins
Jenkins is a powerful tool for continuous construction. It's a very handy tool.The simplest way to install it i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.