
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
handsome_fencer-circle_c_i
Advanced tools
This gem provides developers a handsome way of deploying applications using Docker, CircleCI, and the server of their choice. It's written in Ruby, uses Thor, and admires the Rails philosophy of convention over configuration.
Once installed, handsome_fencer-circle_c_i gives you a CLI with four commands -- install, generate_key, obfuscate, and expose:
$ handsome_fencer-circle_c_i --help
If you just need to generate keys, obfuscate, or expose, environment files:
$ gem install handsome_fencer-circle_c_i
If you wish to use the install command, you'll need Docker and Docker Compose installed.
installing Docker installing Docker Compose
Once you can do:
$ docker-compose -v
...and see output similar to:
$ docker-compose -v
docker-compose version 1.21.0, build 5920eb0
...You are now ready to either a) greenfield a handsome new app or b) handsomize an existing one.
$ mkdir -p sooperdooper
$ cd sooperdooper
$ handsome_fencer-circle_c_i dockerize
You will be prompted with a number of questions. For demonstration purposes and to accept the defaults, hit enter at each prompt without answering, and again hit enter when asked if you'd like to over-write files.
$ docker-compose run app rails new . --database=postgresql --skip
3a) If you're on a linux machine, you may need to chown the newly created files:
$ sudo chown <username><user group> -R .
If that doesn't work, Docker's documentation should get you pointed in the right direction.
$ docker-compose up --build
$ docker-compose run app bin/rails db:create db:migrate
You should now be able to see the Rails welcome screen upon clicking http://localhost:3000/.
$ handsome_fencer-circle_c_i dockerize
You'll be asked which files to write over. Keep your Gemfile and let it write over everything else, including your .gitignore, any existing docker-compose.yml, .circleci/config.yml, and Gemfile.lock files.
Ask Docker to build the necessary images for our app and spool up containers using them:
$ docker-compose up --build
If you're on a linux machine, you may need to chown the newly created files using:
$ sudo chown <username><user group> -R .
If that doesn't work, Docker's documentation should get you pointed in the right direction.
$ docker-compose exec app bin/rails db:setup
You should now be able to see your app running upon clicking http://localhost:3000/.
This gem and the associated practices are just a way of deploying your application, not the canonical or best way. If you have suggestions on how to make it easier, more secure, quicker or better, please share them. If you have specific ideas, please fork the repo, make your changes, write your tests, and send me a pull request.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that handsome_fencer-circle_c_i demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.