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 alejandra.vargas alex.caceres alvaro.torrez ariel.arteaga cristhian.arostegui daniel.asin gibran.jalil 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}})
# 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 \
# 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 /
Created May 2, 2017
Start and Enable docker service in CentOS
# Start docker service
systemctl start docker
# Enable docker service to start with OS on reboots
systemctl enable docker
# Verify docker service
systemctl status docker
# create a docker image from Dockerfile
docker build -t garyascuy/todos .
# push "garyascuy/todos" image to
docker push garyascuy/todos
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 <>
ENV BUILD_PACKAGES="python make gcc g++ git libuv bash curl tar bzip2" \
NODE_ENV=production \
ROOT_URL=http://localhost:3000 \
WORKDIR /root/app/bundle
View gist:4d51239a1a85a22dff450651fd3b2729
# clone source code from github
git clone
View gist:66324e01acc47747e4d40316596bd4ca
# clone source code from github
git clone
Gary-Ascuy /
Last active Apr 30, 2017
Docker + Meteor - Create a linux build
# create meteor build for linux
meteor build ../build --server-only --architecture os.linux.x86_64
You can’t perform that action at this time.