-
Notifications
You must be signed in to change notification settings - Fork 94
Adding GitPod #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Adding GitPod #191
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4a2f9ea
WIP: adding .gitpod.yml
naskio eb6e273
WIP: GitPod config for DEV + DEMO
naskio e85ecca
WIP: commenting tasks
naskio 435d403
adding comment
naskio 1c0969a
adding custom Dockerfile
naskio 1d70ccb
updating custom docker image
naskio 829f4e7
config GitPod
naskio 8669002
Adding mono compiler
naskio 825fdf9
adding config to run tests on startup
naskio a08b99e
updating init+command
naskio 3d12f53
adding comment
naskio a874ea2
Merge branch 'master' into feat/gitpod
marcin-krystianc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| FROM gitpod/workspace-full:latest | ||
|
|
||
| USER gitpod | ||
|
|
||
| # Install .NET SDK | ||
| ADD global.json ./ | ||
| RUN mkdir -p /home/gitpod/dotnet \ | ||
| && curl -fsSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --jsonfile global.json --install-dir /home/gitpod/dotnet \ | ||
| && rm global.json | ||
| ENV DOTNET_ROOT=/home/gitpod/dotnet | ||
| ENV PATH=$PATH:/home/gitpod/dotnet | ||
|
|
||
| # Install Consul Server | ||
| ADD Directory.Build.props ./ | ||
| RUN CONSUL_VERSION=$(cat Directory.Build.props|grep -oP '(?<VersionPrefix>)\d{1,3}\.\d{1,3}\.\d{1,3}') \ | ||
| && CONSUL_ARCH=$(dpkg --print-architecture) \ | ||
| && rm Directory.Build.props \ | ||
| && echo "Installing Consul ${CONSUL_VERSION}_${CONSUL_ARCH} ..." \ | ||
| && cd /usr/local/bin \ | ||
| && sudo wget "https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_${CONSUL_ARCH}.zip" \ | ||
| && sudo unzip -o "consul_${CONSUL_VERSION}_linux_${CONSUL_ARCH}.zip" \ | ||
| && sudo rm "consul_${CONSUL_VERSION}_linux_${CONSUL_ARCH}.zip" \ | ||
| && cd \ | ||
| && consul --version | ||
|
|
||
| # Install Mono JIT compiler | ||
| RUN sudo apt install -y gnupg ca-certificates \ | ||
| && sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ | ||
| && echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list \ | ||
| && sudo apt update \ | ||
| && sudo apt install -y mono-complete \ | ||
| && mono --version | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| image: | ||
| file: .gitpod.Dockerfile | ||
|
|
||
| # Adding vscode C# extension | ||
| vscode: | ||
| extensions: | ||
| - muhammad-sammy.csharp | ||
|
|
||
| # Ports to expose | ||
| ports: | ||
| - name: Consul Dev Server UI | ||
| port: 8500 | ||
| onOpen: open-preview | ||
|
|
||
| # Start-up tasks | ||
| tasks: | ||
| - name: Consul.NET Client # this task is optional (used as workaround for OmniSharp/omnisharp-vscode/issues/4783) | ||
| before: | | ||
| dotnet --version | ||
| init: | | ||
| dotnet build | ||
| cd Consul.Test/ && pwd | ||
| dotnet build | ||
| cd .. | ||
| command: | | ||
| cd Consul.Test/ && pwd | ||
| dotnet run --framework "net6.0" | ||
| cd .. | ||
| - name: Consul Server | ||
| before: | | ||
| consul --version | ||
| command: | | ||
| cd Consul.Test/ | ||
| consul agent -dev -config-file test_config.json | ||
| openMode: split-right | ||
|
|
||
| # Configuring pre-builds | ||
| github: | ||
| prebuilds: | ||
| # enable for the default branch (defaults to true) | ||
| master: true | ||
| # enable for all branches in this repo (defaults to false) | ||
| branches: false | ||
| # enable for pull requests coming from this repo (defaults to true) | ||
| pullRequests: true | ||
| # enable for pull requests coming from forks (defaults to false) | ||
| pullRequestsFromForks: false | ||
| # add a check to pull requests (defaults to true) | ||
| addCheck: true | ||
| # add a "Review in Gitpod" button as a comment to pull requests (defaults to false) | ||
| addComment: false | ||
| # add a "Review in Gitpod" button to the pull request's description (defaults to false) | ||
| addBadge: false |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.