#Grab the latest alpine image
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0
# Add our code
ADD ./bin/Release/netcoreapp3.0/ /app
WORKDIR /app
This file contains hidden or 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
With marked text, ctrl + shift + l, makes all occurances editable. | |
With marked text, alt + shift + i, put edit cursor at end of each line |
This file contains hidden or 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
#!/bin/sh | |
# This script: | |
# 1. Creates a bare git repo in /opt/[name-of-repo] | |
# 2. Clones the bare git repo to a "live" location | |
# 3. Creates a post-receive hook script | |
# | |
# Command line usage: | |
# the-name-of-this-file name-of-repo |
Change site settings here
sudo nano /etc/nginx/sites-available/default
Check that the config file syntax is OK
sudo nginx -t
Restart Nginx
Find the last two commits by:
git log -2 --format=oneline --reverse
Then run the hook by:
echo "[from-commit-id] [to-commit-id] master" | ./hooks/post-receive
This file contains hidden or 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
package org.mule.example.cep; | |
import org.mule.api.MuleMessage; | |
import org.mule.api.MuleMessageCollection; | |
import org.mule.api.client.MuleClient; | |
import org.mule.tck.FunctionalTestCase; | |
import org.mule.util.CollectionUtils; | |
import java.util.*; |