vagrant up
した時にsynced_folder
をマウントできないというエラーが起きる.- VM(CentOS 7)にログインして調べるとhostonlyのNIC(eth1だった)が自動起動していない.
- Vagrantのバージョンを1.9.1から1.9.3(最新版)にアップデート.
vagrant up
で,Configuring and enabling network interfaces
の時点でエラーになる.- Vagrantのネットワークが起動しないときは - THINKING MEGANEの"ブリッジ, もしくはホストオンリーネットワークでパッケージングした場合"に
/etc/udev/rules.d/70-persistent-net.rules
にNICとMACのマッピングが記述されるとあるのをみて, そのファイルをチェック, それらしい記述はなかったが, とりあえずファイルを削除して/dev/null
のsymlinkに置き換えた. - VMのパッケージのバージョンが古めで, 最新版のvagrantと相性(?)が悪いのかと思い, 全てアップデート(
yum update
). だが↑↑の問題は解決せず. - VMにログインし
journalctl -xe
を見ると, enp0s3というNICが起動できずにエラーを吐いた模様. /etc/sysconfig/network-scripts/ifcfg-enp0s3
というファイルが存在し, その先頭には# Generated by dracut initrd
とあった.
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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem "rspec" | |
gem "test-unit" |
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
sudo xcodebuild -license accept |
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
def dbconf | |
Rails.configuration.database_configuration[Rails.env] | |
end | |
namespace :docker do | |
namespace :db do | |
desc "Launch docker container for database" | |
task run: :environment do | |
sh <<-BASH.strip_heredoc | |
docker run \ |
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
function! CopyToRemote() | |
let host = '***.***.***.***' | |
let port = '52225' | |
call system(join(['nc', '-w1', host, port]), @") | |
endfunction |
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
FROM ruby:2.2 | |
ARG USER_ID | |
ENV APP_ROOT="/usr/src/app" | |
ENV BUNDLE_PATH="$APP_ROOT/vendor/bundle" \ | |
BUNDLE_BIN="$APP_ROOT/vendor/bundle/bin" \ | |
BUNDLE_APP_CONFIG="$APP_ROOT/vendor/bundle" | |
WORKDIR $APP_ROOT |
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
FROM ruby:2.4.0 | |
ENV APP_ROOT /usr/src/app | |
WORKDIR $APP_ROOT | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
nodejs \ | |
mysql-client \ |
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
commit 6e898db3d9b70c70e76d290087457d5c44be88b4 | |
Author: ********* | |
Date: Mon Nov 14 15:24:02 2016 +0900 | |
Setup test-unit as default testing F/W | |
diff --git a/Gemfile b/Gemfile | |
index f4034b9..6f8c80a 100644 | |
--- a/Gemfile | |
+++ b/Gemfile |
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
# coding: utf-8 | |
DJANGO_PROJ_PATH = '[SET HERE]' | |
DJANGO_PROJ_NAME = '[SET HERE]' | |
PID_PATH = '[SET HERE]' | |
LOG_PATH = '[SET HERE]' | |
def setup_django(): | |
import sys |
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
# coding: utf-8 | |
def add(a, b): | |
return a + b | |
def sub(a, b): | |
return a - b | |
def mul(a, b): | |
return a * b |