-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cd65ef
commit f69608f
Showing
37 changed files
with
1,727 additions
and
3,444 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# shellcheck disable=SC2148 disable=SC2034 | ||
LOG_LEVEL=0 | ||
LOG_DIR=tmp | ||
SHELL_DIR=shell | ||
CODECOV_TOKEN="<YOUR_CODECOV_TOKEN>" | ||
GITHUB_TOKEN="<YOUR_GITHUB_TOKEN>" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ~/.shellcheckrc | ||
|
||
external-sources=true | ||
source-path="./shell" | ||
|
||
# Suggest ${VAR} in place of $VAR | ||
enable=require-variable-braces |
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# GitLab-CI Installation | ||
|
||
## Prerequisites | ||
|
||
- A Kubernetes cluster | ||
- The following tools installed on your local machine: | ||
- [Helm](https://helm.sh/docs/intro/install/) | ||
- [Kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) | ||
|
||
Both Helm and Kubectl are available in the Homebrew package manager. To install them, run the following commands: | ||
|
||
- Install Homebrew: | ||
|
||
```bash | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
``` | ||
|
||
- Install Helm and Kubectl: | ||
|
||
```bash | ||
brew install helm | ||
brew install kubectl | ||
``` | ||
|
||
## Configure Helm | ||
|
||
```bash | ||
helm repo add gitlab https://charts.gitlab.io | ||
helm repo update | ||
``` | ||
|
||
## Deploy GitLab-CI with Helm | ||
|
||
```bash | ||
helm install gitlab gitlab/gitlab --set global.edition=ce --set global.hosts.domain=scalastic.local --set certmanager.install=false | ||
``` | ||
|
||
Get the Jenkins admin password: | ||
|
||
```bash | ||
kubectl get secret jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode; echo | ||
``` | ||
|
||
## Configure Ingress to access Jenkins | ||
|
||
- Install Nginx Ingress Controller: | ||
|
||
```bash | ||
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx | ||
helm repo update | ||
helm install nginx-ingress ingress-nginx/ingress-nginx | ||
``` | ||
|
||
- Create a `jenkins-ingress.yaml` file: | ||
|
||
```yaml | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: jenkins-ingress | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
spec: | ||
rules: | ||
- host: jenkins.scalastic.local | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: jenkins | ||
port: | ||
number: 8080 | ||
``` | ||
- Apply the configuration: | ||
```bash | ||
kubectl apply -f jenkins-ingress.yaml | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
external_url 'http://gitlab.scalastic.local' | ||
registry_external_url 'https://gitlab.scalastic.local' | ||
nginx['listen_port'] = 4000 | ||
nginx['listen_https'] = false |
Oops, something went wrong.