Skip to content
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

fixing jenkins docker image tag #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lesson-jenkins"]
path = lesson-jenkins
url = [email protected]:elreydetoda/hellonode.git
1 change: 1 addition & 0 deletions lesson-jenkins
Submodule lesson-jenkins added at e37d8f
22 changes: 0 additions & 22 deletions lesson-jenkins/Dockerfile

This file was deleted.

37 changes: 0 additions & 37 deletions lesson-jenkins/Jenkinsfile

This file was deleted.

13 changes: 0 additions & 13 deletions lesson-jenkins/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions lesson-jenkins/hello-node-app/main.js

This file was deleted.

23 changes: 0 additions & 23 deletions lesson-jenkins/hello-node-app/package.json

This file was deleted.

7 changes: 0 additions & 7 deletions lesson-jenkins/hello-node-app/test.js

This file was deleted.

48 changes: 48 additions & 0 deletions lesson-openstack/README.md.02
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Lesson: Openstack

In this lesson, we'll be using Openstack with DevStack. DevStack is a tool that runs a complete Openstack environment on a single server. Because installing DevStack requires various changes to network configuration of the server it's installed on, we'll be creating a new virtual machine for it in Google Cloud Platform.

Using the skills you have learned in the previous lessons, provision a new virtual machine on Google Compute Engine. Create a server with 2 VCPUs, 8 gigabytes of memory and 100GB root disk with the Ubuntu 16.04 operating system. Also, create a firewall rule to allow TCP port 80 inbound from any source.

Finally, SSH into the new virtual machine (either via Google Cloud Shell or externally) and follow the instructions below to install DevStack. Note that the installation will take about 15 minutes.

## Install DevStack

First, create a user for running DevStack:
```
sudo useradd -s /bin/bash -d /opt/stack -m stack
```

Enable this user to sudo without a password:
```
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
```

Open a shell as the stack user:
```
sudo su - stack
```

Download DevStack via git:
```
git clone https://git.openstack.org/openstack-dev/devstack
cd devstack
```

Create the minimum configuration for installing DevStack:
```
echo -e "[[local|localrc]]\nADMIN_PASSWORD=masterclass\nDATABASE_PASSWORD=\$ADMIN_PASSWORD\nRABBIT_PASSWORD=\$ADMIN_PASSWORD\nSERVICE_PASSWORD=\$ADMIN_PASSWORD" > local.conf
```

Alter the packages needed to install because mysql is out of date
```
for i in $(sudo grep -r 'libmysqlclient-dev' * | cut -d ':' -f 1) ; do sed -i 's/libmysqlclient-dev/default-libmysqlclient-dev/' $i ; done
```

Start the DevStack installation:
```
./stack.sh
```

When the installation is complete, login to the Openstack dashboard in `http://<VIRTUAL_MACHINE_PUBLIC_IP>/dashboard/` using the username `demo` and password `masterclass`.

2 changes: 1 addition & 1 deletion lesson-rancher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ In this lesson, we'll configure a virtual machine on Google Compute Engine to ru

Run the following commands on Google Cloud Shell to create the Virtual Machine and firewall rule:
```
gcloud beta compute instances create "rancher" --zone "us-east1-b" --machine-type "custom-1-8192-ext" --subnet "default" --maintenance-policy "MIGRATE" --no-service-account --no-scopes --min-cpu-platform "Automatic" --tags "rancher" --image "coreos-alpha-1576-1-0-v20171026" --image-project "coreos-cloud" --boot-disk-size "20" --boot-disk-type "pd-standard" --boot-disk-device-name "rancher"
gcloud beta compute instances create "rancher" --zone "us-east1-b" --machine-type "custom-1-8192-ext" --subnet "default" --maintenance-policy "MIGRATE" --no-service-account --no-scopes --min-cpu-platform "Automatic" --tags "rancher" --image "$(gcloud beta compute images list --filter="family:coreos-alpha" --format="value(NAME)")" --image-project "coreos-cloud" --boot-disk-size "20" --boot-disk-type "pd-standard" --boot-disk-device-name "rancher"

gcloud compute firewall-rules create rancher-test --direction=INGRESS --priority=1000 --network=default --action=ALLOW --rules="tcp:8000,tcp:8080,tcp:9000" --source-ranges=0.0.0.0/0 --target-tags=rancher
```
Expand Down