Skip to content

Commit 8e39f17

Browse files
committed
pull origin from gantsign/master
2 parents f0adfab + 756033a commit 8e39f17

File tree

18 files changed

+283
-205
lines changed

18 files changed

+283
-205
lines changed

.github/workflows/build.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
env:
9+
PY_COLORS: '1'
10+
ANSIBLE_FORCE_COLOR: '1'
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: ubuntu-18.04
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: '3.6'
25+
26+
- name: Install Vagrantfile lint tool
27+
run: sudo gem install rubocop
28+
29+
- name: Install Ansible
30+
run: pip3 install --user ansible==2.9.19
31+
32+
- name: Check ansible version
33+
run: ansible --version
34+
35+
- name: Vagrantfile syntax check
36+
run: rubocop ./Vagrantfile --except LineLength,BlockLength,Eval,MutableConstant,FormatStringToken,EmptyLinesAroundArguments,IfUnlessModifier
37+
38+
- name: Install Ansible roles
39+
run: ansible-galaxy install --role-file=provisioning/requirements.yml "--roles-path=$HOME/roles"
40+
41+
- name: Ansible syntax check
42+
run: ansible-playbook provisioning/playbook.yml --inventory=tests/inventory --syntax-check
43+
env:
44+
ANSIBLE_ROLES_PATH: '$HOME/roles'
45+
46+
- name: Login to Docker Hub
47+
if: "!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository && !startsWith(github.head_ref, 'dependabot/'))"
48+
uses: docker/login-action@v1
49+
with:
50+
username: ${{ secrets.DOCKERHUB_USERNAME }}
51+
password: ${{ secrets.DOCKERHUB_TOKEN }}
52+
53+
- name: Build docs
54+
run: (cd docs && sudo chmod go+rw -R . && ./build.sh)
55+
56+
- name: Configure Git user
57+
run: >-
58+
git config --global user.name 'John Freeman' &&
59+
git config --global user.email '17984707+freemanjp@users.noreply.github.com'
60+
61+
- name: Publish docs
62+
run: (cd docs && ./build.sh --publish)
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/verify.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Verify
2+
3+
on:
4+
pull_request: {}
5+
6+
env:
7+
PY_COLORS: '1'
8+
ANSIBLE_FORCE_COLOR: '1'
9+
10+
jobs:
11+
verify:
12+
name: Verify
13+
runs-on: ubuntu-18.04
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.6'
23+
24+
- name: Install Vagrantfile lint tool
25+
run: sudo gem install rubocop
26+
27+
- name: Install Ansible
28+
run: pip3 install --user ansible==2.9.19
29+
30+
- name: Check ansible version
31+
run: ansible --version
32+
33+
- name: Vagrantfile syntax check
34+
run: rubocop ./Vagrantfile --except LineLength,BlockLength,Eval,MutableConstant,FormatStringToken,EmptyLinesAroundArguments,IfUnlessModifier
35+
36+
- name: Install Ansible roles
37+
run: ansible-galaxy install --role-file=provisioning/requirements.yml "--roles-path=$HOME/roles"
38+
39+
- name: Ansible syntax check
40+
run: ansible-playbook provisioning/playbook.yml --inventory=tests/inventory --syntax-check
41+
env:
42+
ANSIBLE_ROLES_PATH: '$HOME/roles'
43+
44+
- name: Login to Docker Hub
45+
if: "!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository && !startsWith(github.head_ref, 'dependabot/'))"
46+
uses: docker/login-action@v1
47+
with:
48+
username: ${{ secrets.DOCKERHUB_USERNAME }}
49+
password: ${{ secrets.DOCKERHUB_TOKEN }}
50+
51+
- name: Build docs
52+
run: (cd docs && sudo chmod go+rw -R . && ./build.sh)
53+

.travis.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.travis/build.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ A development environment for Java, Python, Node.js and Go built using Vagrant.
2525

2626
## Useful infos
2727

28-
### Kubernetes Dashboard
28+
### Kubernetes Dashboard
2929

30-
Kubernetes [Dashboard](https://dashboard.localhost.com/) is available. You can generate a token
31-
with
30+
Kubernetes [Dashboard](https://dashboard.localhost.com/) is available. You can generate a token
31+
with
3232

33-
```bash
33+
```bash
3434
microk8s kubectl -n kubernetes-dashboard describe secret admin-user-token | grep ^token
3535
```
3636

@@ -42,13 +42,13 @@ sudo timedatectl set-ntp off && sudo timedatectl set-ntp on
4242

4343
### To make Chrome to trust the self sign certificate that was generated at build time add localhost.com cert using libnss3-tools
4444

45-
```bash
45+
```bash
4646
[ -d ~/.pki/nssdb ] || mkdir -p ~/.pki/nssdb
4747
certutil -d sql:$HOME/.pki/nssdb -A -n 'localhost.com cert authority' -i /etc/certs/localhost-ca.pem -t TCP,TCP,TCP
4848
certutil -d sql:$HOME/.pki/nssdb -A -n 'localhost.com' -i /etc/certs/server.pem -t P,P,P
4949
```
5050

51-
### If kubectl or kubeadm autocompletition does not work. They can be added manually
51+
### If kubectl or kubeadm autocompletition does not work. They can be added manually
5252
To manually configure Zsh tab completion add the following to your .zshrc:
5353

5454
```bash
@@ -85,7 +85,6 @@ environment that you can fork to add your project specific configuration.
8585
* Oh My Zsh
8686
* Docker
8787
* Helm
88-
* kops
8988
* Visual Studio Code
9089
* lazygit
9190
* Git-GUI and Gitk
@@ -162,7 +161,7 @@ sudo apt install flameshot
162161
gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot ''
163162
```
164163

165-
> Please note: on newer (19.x) ubuntu this is
164+
> Please note: on newer (19.x) ubuntu this is
166165
167166
```bash
168167
gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '[]'
@@ -184,8 +183,5 @@ MIT
184183

185184
## Author Information
186185

187-
Thank you
186+
Thank you
188187
(https://gantsign.github.io/development-environment/docs/requirements
189-
190-
191-

Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ SCRIPT
386386
config.vm.provision 'ansible_local' do |ansible|
387387
ansible.playbook = 'provisioning/playbook.yml'
388388
ansible.galaxy_role_file = 'provisioning/requirements.yml'
389+
ansible.galaxy_roles_path = '/home/vagrant/.ansible/roles'
389390

390391
# Workaround for: "[ERROR]: failed to download the file: [Errno 104] Connection reset by peer"
391392
ansible.galaxy_command = 'ansible-galaxy install --role-file=%{role_file} --roles-path=%{roles_path} --force'

docs/Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ source "https://rubygems.org"
99
# This will help ensure the proper Jekyll version is running.
1010
# Happy Jekylling!
1111

12-
gem 'github-pages', '214', group: :jekyll_plugins
12+
gem 'github-pages', '216', group: :jekyll_plugins
1313

1414
# If you want to use Jekyll native, uncomment the line below.
1515
# To upgrade, run `bundle update`.
1616

1717
# gem "jekyll"
1818

1919
# Install minimal-mistakes theme
20-
gem 'minimal-mistakes-jekyll', '4.22.0'
20+
gem 'minimal-mistakes-jekyll', '4.24.0'
2121

2222
# If you have any plugins, put them here!
2323
group :jekyll_plugins do
2424
# gem "jekyll-archives"
25-
gem 'html-proofer', '3.18.8'
26-
end
25+
gem 'html-proofer', '3.19.2'
26+
end

0 commit comments

Comments
 (0)