Skip to content

Instantly share code, notes, and snippets.

Gary Ascuy Gary-Ascuy

  • Zio Software Development
  • Bolivia
Block or report user

Report or block Gary-Ascuy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker-for-developers.txt
10.28.114.14 alejandra.vargas
10.28.114.15 alex.caceres
10.28.114.16 alvaro.torrez
10.28.114.17 ariel.arteaga
10.28.114.18 cristhian.arostegui
10.28.114.19 daniel.asin
10.28.114.20 gibran.jalil
10.28.114.21 gramsci.hermozo
View meteor_publication.js
import { Meteor } from 'meteor/meteor'
import { Persons } from '/imports/api/persons/persons'
Meteor.publish('Persons.byRole', function(role) {
check(role, String)
return Persons.find({role: role}, {fields: {name: 1}})
})
View docker_meteor_deploy_meteor_app.sh
# puling todos image from public docker hub
docker pull meteorjs/todos:latest
# run meteor container
docker run -d -p 80:3000 --restart=always \
--link mongodb \
-e MONGO_URL=mongodb://mongodb:27017/todos \
-e MONGO_OPLOG_URL=mongodb://oplogger:master@mongodb:27017/local?authSource=admin \
--name=todos \
meteorjs/todos:latest
View docker_meteor_deploy_mongo.sh
# pull mongodb image from Docker hub
docker pull mongo:3.2
# run mongodb container
docker run -d --restart=always \
-v /root/database/:/data/db \
--name mongodb \
mongo:3.2 mongod --smallfiles --nohttpinterface --replSet rs0
# configure replica set, and create oplog user
@Gary-Ascuy
Gary-Ascuy / docker_meteor_start_enable_docker.sh
Created May 2, 2017
Start and Enable docker service in CentOS
View docker_meteor_start_enable_docker.sh
# Start docker service
systemctl start docker
# Enable docker service to start with OS on reboots
systemctl enable docker
# Verify docker service
systemctl status docker
View docker_meteor_docker_build.sh
# create a docker image from Dockerfile
docker build -t garyascuy/todos .
# push "garyascuy/todos" image to https://hub.docker.com/
docker push garyascuy/todos
@Gary-Ascuy
Gary-Ascuy / docker_meteor_clone_todos_app.Dockerfile
Created Apr 30, 2017
Dockefile template for Meteor application
View docker_meteor_clone_todos_app.Dockerfile
# Dockerfile for Meteor App
FROM node:4.8.2-alpine
MAINTAINER Gary Ascuy <gary.ascuy@gmail.com>
ENV BUILD_PACKAGES="python make gcc g++ git libuv bash curl tar bzip2" \
NODE_ENV=production \
ROOT_URL=http://localhost:3000 \
PORT=3000
WORKDIR /root/app/bundle
View gist:4d51239a1a85a22dff450651fd3b2729
# clone source code from github
git clone https://github.com/dockercochabamba/todos.git
View gist:66324e01acc47747e4d40316596bd4ca
# clone source code from github
git clone https://github.com/dockercochabamba/todos.git
@Gary-Ascuy
Gary-Ascuy / docker_meteor_create_build.sh
Last active Apr 30, 2017
Docker + Meteor - Create a linux build
View docker_meteor_create_build.sh
# create meteor build for linux
meteor build ../build --server-only --architecture os.linux.x86_64
You can’t perform that action at this time.