This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var serviceCollection = new ServiceCollection(); | |
ConfigureServices(serviceCollection); | |
var serviceProvider = serviceCollection.BuildServiceProvider(); | |
serviceProvider.GetService<StartUp>().Run(); | |
serviceProvider.Dispose(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jenkins/jenkins:lts | |
# if we want to install via apt | |
USER root | |
ENV DOCKERVERSION=18.03.1-ce | |
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \ | |
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 \ | |
-C /usr/local/bin docker/docker \ | |
&& rm docker-${DOCKERVERSION}.tgz | |
RUN groupadd docker | |
RUN usermod -aG docker jenkins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ^~ /your_path { | |
proxy_set_header Host $host:$server_port; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_pass http://ip:port; | |
proxy_redirect default; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ufw allow 4369 | |
sudo ufw allow 5671 | |
sudo ufw allow 5672 | |
sudo ufw allow 25672 | |
sudo ufw allow 35672:35682/tcp | |
sudo ufw allow 15672 | |
sudo ufw allow 61613 | |
sudo ufw allow 61614 | |
sudo ufw allow 1883 | |
sudo ufw allow 8883 |