Giter Club home page Giter Club logo

kubernetes-on-rails-starter-files's Introduction

Starter files for the Kubernetes on Rails course. Come learn Kubernetes with me!

The code in this repo meant to be a reference point for anyone following along with the video course. The stepped-solutions directory contains the final code at the end of each episode.

FAQ

Q: Why aren't you using an Alpine-based Docker parent image?

A: Alpine-based Ruby images can have odd bugs, sometimes related to Alpine's use of musl libc instead of glibc (example)

kubernetes-on-rails-starter-files's People

Contributors

abevoelker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kubernetes-on-rails-starter-files's Issues

Error: Error creating Network, ....default already exists

Following you up on the video you created to create sql with private ip:

resource "google_compute_network" "vpc_default" {
provider = "google-beta"
name = "default"
lifecycle {
ignore_changes = ["description"]
prevent_destroy = true
}
}

I stumbled upon these errors:

(master)⚡ % terraform apply  /tmp/plan                                                                      ~/repos/thapakazi/node-3tier-app/provision/gcloud
google_compute_network.vpc_default: Creating...
google_project_service.servicenetworking: Creating...
google_project_service.servicenetworking: Still creating... [10s elapsed]
google_project_service.servicenetworking: Still creating... [20s elapsed]
google_project_service.servicenetworking: Creation complete after 21s [id=terraforming-250207/servicenetworking.googleapis.com]

Error: Error creating Network: googleapi: Error 409: The resource 'projects/terraforming-250207/regions/us-central1/subnetworks/default' already exists, alread
yExists

  on network.tf line 2, in resource "google_compute_network" "vpc_default":
   2: resource "google_compute_network" "vpc_default" {

Help needed understand this.... thanks

make build error

I cloned the repo and I'm following the second video on this course, when I run make build I get the following.

Copying files from `/etc/skel' ...
mkdir -p /var/bundle /var/www /var/www/docker /data/public
chown -R web:web /var/bundle /var/www /data
cd /var/www/
find /var/www/docker -type f -name *.sh -print0
xargs -0 chmod +x
chmod: missing operand after '+x'
Try 'chmod --help' for more information.
The command '/bin/sh -c set -ex &&  apt-get update &&  apt-get install -y --no-install-recommends   sudo   wget   curl   build-essential   libcurl4-openssl-dev   python-dev   python-setuptools   software-properties-common   gnupg   python-pip   git   file   brotli &&  pip install python-magic &&  curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - &&  curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - &&  echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list &&  cd /tmp &&  wget -O su-exec-0.2.tar.gz https://github.com/ncopa/su-exec/archive/v0.2.tar.gz &&  tar -xzvf su-exec-0.2.tar.gz &&  cd su-exec-0.2/ &&  make &&  cp -a su-exec /usr/bin/ &&  apt-get clean &&  apt-get update &&  apt-get install -y --no-install-recommends   nodejs   yarn   libpq-dev   postgresql-client-9.6   libreadline-dev   zlib1g-dev   flex   bison   libxml2-dev   libxslt1-dev   libssl-dev   imagemagick   ca-certificates   rsync &&  adduser web --home /home/web --shell /bin/bash --disabled-password --gecos "" &&  mkdir -p /var/bundle /var/www /var/www/docker /data/public &&  chown -R web:web /var/bundle /var/www /data &&  cd /var/www/ &&  find /var/www/docker -type f -name "*.sh" -print0 | xargs -0 chmod +x &&  chown -R web:web /var/www &&  cd /var/www/ &&  su-exec web bundle install --path /var/bundle --deployment --without development test deploy &&  su web -c 'cd /var/www && . /var/www/.env.docker-build && bundle exec rake assets:precompile' &&  rm -rf /var/www/tmp/* /var/www/log/* /home/web/.bundle/cache &&  apt-get clean &&  apt-get remove --purge -y   apt-transport-https   wget   curl   libcurl4-openssl-dev   python-dev   python-setuptools   software-properties-common   gnupg   python-pip   git   libreadline-dev   zlib1g-dev   flex   bison   libxml2-dev   libxslt1-dev   rsync &&  apt-get -y autoremove &&  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/fonts   /usr/share/doc/* /etc/fonts /root/.cache /usr/share/fontconfig   /usr/share/icons /usr/share/man' returned a non-zero code: 123
make: *** [build] Error 123

This is the command where the dockerfile stops (line 63):

find /var/www/docker -type f -name "*.sh" -print0 | xargs -0 chmod +x &&\

I'm not much of a console/terminal guy, but I started looking why I might be getting this error and found that it might be that the piped result to the chmod command might be null or empty.

If you need any more info please let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.