This file contains hidden or 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
version: 2 # use CircleCI 2.0 | |
jobs: # a collection of steps | |
build: # runs not using Workflows must have a `build` job as entry point | |
parallelism: 1 # run three instances of this job in parallel | |
docker: # run the steps with Docker | |
- image: circleci/ruby:2.3.4-jessie-node # ...with this image as the primary container; this is where all `steps` will run | |
environment: # environment variables for primary container | |
BUNDLE_JOBS: 3 | |
BUNDLE_RETRY: 3 | |
BUNDLE_PATH: vendor/bundle |
This file contains hidden or 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
version: '3' | |
services: | |
memcached: | |
image: memcached:1.5-alpine | |
volumes: | |
- memcache:/data | |
db: | |
image: mysql:5.7 |
This file contains hidden or 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.3 | |
LABEL maintainer="Channa <[email protected]>" | |
# Updating nodejs version | |
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
# Install dependencies |
This file contains hidden or 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
default: &default | |
DATABASE_NAME_DEVELOPMENT: 'avocado_docker_dev' | |
DATABASE_USER: 'root' | |
DATABASE_PASSWORD: '' | |
DATABASE_POOL_SIZE: '50' | |
DATABASE_HOST: 'db' # container from docker | |
MEMCACHED_SERVER: 'memcached:11211' #container name | |
development: |
This file contains hidden or 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
version: '3' | |
services: | |
db: | |
image: mysql:5.7 | |
environment: | |
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' | |
volumes: | |
- db:/var/lib/mysql |
This file contains hidden or 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.3 | |
LABEL maintainer="Channa <[email protected]>" | |
# Updating nodejs version | |
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash | |
# Install dependencies | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y \ |
This file contains hidden or 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
#!/usr/bin/env bash | |
## to update the main process with >> . file_name | |
##function definition | |
process_json(){ | |
#$1: json string | |
#$2: indicee | |
#$3: env name | |
json=$1 | |
i=$2 |
This file contains hidden or 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 apt get install libgeos-dev | |
# sudo apt-get install proj-bin | |
gem 'rgeo' # required http://trac.osgeo.org/geos | |
gem 'ffi-geos' |
This file contains hidden or 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
const path = require('path'); | |
const glob = require('glob'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | |
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const templateEntries = glob.sync('./js/templates/**.js').reduce(function(obj, el){ | |
var name = "./templates/" + path.parse(el).name | |
obj[name] = el; |
This file contains hidden or 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
const path = require('path'); | |
const glob = require('glob'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | |
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
module.exports = (env, options) => ({ | |
optimization: { | |
minimizer: [ |