Monday, July 17, 2017
update ruby version
cng@ACP:/opt/newdisk/mydockers/docker-lamp$ source /usr/local/rvm/scripts/rvm
cng@ACP:/opt/newdisk/mydockers/docker-lamp$ rvm use 2.4.1
Using /home/chang/.rvm/gems/ruby-2.4.1
cng@ACP:/opt/newdisk/mydockers/docker-lamp$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
Wednesday, May 24, 2017
chef 12 opsworks github issue
I had some issue to checkout git repo from private repo.
Took couple of hours to figure it out.
1: add application cookbook in "Berksfile"
cookbook 'application', '~> 5.2.0'
Took couple of hours to figure it out.
1: add application cookbook in "Berksfile"
cookbook 'application', '~> 5.2.0'
2: run
berks update
3: create recipe:
app = search(:aws_opsworks_app).first
app_path = "/srv/#{app['shortname']}"
application app_path do
git app['app_source']['url'] do
deploy_key app['app_source']['ssh_key']
end
end
Sunday, May 7, 2017
ROR Dockerfile
FROM ubuntu:16.04
# Set the working directory to /app
WORKDIR /ROR
# Copy the current directory contents into the container at /app
ADD . /ROR
# Install any needed packages specified in requirements.txt
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs && \
mkdir /ROR && \
cd /ROR && \
git clone https://github.com/rbenv/rbenv.git ~/.rbenv && \
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc && \
echo 'eval "$(rbenv init -)"' >> ~/.bashrc && \
exec $SHELL \ &&
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build && \
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc && \
exec $SHELL && \
rbenv install 2.4.0 && \
rbenv global 2.4.0 && \
ruby -v
Thursday, May 4, 2017
oozie enable extjs
327 locate core-site.xml
330 vim /usr/local/hadoop/etc/hadoop/core-site.xml
<property>
<name>hadoop.proxyuser.hduser.hosts</name>
<value>localhost</value>
</property>
<property>
<name>hadoop.proxyuser.hduser.groups</name>
<value>hadoop</value>
</property>
332 bin/oozied.sh stop
333 bin/oozie-setup.sh prepare-war
334 bin/oozied.sh start
Friday, February 17, 2017
Wednesday, November 9, 2016
load csv into mysql
cng@ACP:/opt/nwdisk/pubm$ mysqlimport --ignore-lines=1 --local -u dg -p hem CIDCAS
Subscribe to:
Posts (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...