
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Import mysql db from docker container.
To use this tool you need a docker container on the server with your db.
For visualize progress on the cli you need to install pv: https://man7.org/linux/man-pages/man1/pv.1.html.
# Install PV in your Dockerfile
RUN apt-get update && apt-get install -y pv
RUN apt-get update && apt-get install -y mariadb-client
Add this line to your application's Gemfile:
gem 'amico-db', git: 'https://github.com/rubynetti/amico-db.git'
For example inside a rails initializer (config/initializers/amico-db.rb).
dev = Rails.configuration.database_configuration["production"]
production = Rails.configuration.database_configuration["production"]
AmicoDb.configure do |config|
config.ssh_user = 'root'
config.host = 'your_host'
config.remote_app_path = '/var/www/yourproject'
config.folder_dump = '/dumps/db.sql'
config.local_path = './dumps/db.sql'
config.db_name = production['database']
config.db_user = production['username']
config.db_dev_dbname = dev['database']
config.db_dev_username = dev['username']
end
Your dev configuration need to copy ssh folder inside. Example:
services:
web:
build: .
command: ['rails', 'server', '-b', '0']
volumes:
- .:/app
- ~/.ssh:/home/rails/.ssh
Database service need MYSQL_ROOT_PASSWORD and share dumps folder.
services:
db:
environment:
- MYSQL_ROOT_PASSWORD=$DB_PASSWORD
volumes:
- ./dumps:/dumps
rake db:dump
rake db:import_from_staging
rake db:import_from_sql (importa sql da dumps/db-staging.sql)
docker-compose up
run rake test
commandFAQs
Unknown package
We found that amico-db 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 clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.