Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fixing jenkins docker image tag #1

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

Open
elreydetoda wants to merge 6 commits into releaseworks:master
base: master
Choose a base branch
Loading
from elreydetoda:master
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
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lesson-jenkins"]
path = lesson-jenkins
url = git@github.com:elreydetoda/hellonode.git
1 change: 1 addition & 0 deletions lesson-jenkins
Open in desktop
Submodule lesson-jenkins added at e37d8f
22 changes: 0 additions & 22 deletions lesson-jenkins/Dockerfile
View file Open in desktop

This file was deleted.

37 changes: 0 additions & 37 deletions lesson-jenkins/Jenkinsfile
View file Open in desktop

This file was deleted.

13 changes: 0 additions & 13 deletions lesson-jenkins/README.md
View file Open in desktop

This file was deleted.

13 changes: 0 additions & 13 deletions lesson-jenkins/hello-node-app/main.js
View file Open in desktop

This file was deleted.

23 changes: 0 additions & 23 deletions lesson-jenkins/hello-node-app/package.json
View file Open in desktop

This file was deleted.

7 changes: 0 additions & 7 deletions lesson-jenkins/hello-node-app/test.js
View file Open in desktop

This file was deleted.

48 changes: 48 additions & 0 deletions lesson-openstack/README.md.02
View file Open in desktop
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
View file Open in desktop
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

AltStyle によって変換されたページ (->オリジナル) /