Giter Site home page Giter Site logo

githubfoam / freebsd-sandbox Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 73 KB

freebsd bento box, freebsd docker-base image(experimental)

License: GNU General Public License v3.0

Makefile 7.38% Shell 92.62%
freebsd docker bento vagrant-cloud libvirt ansible dragonflybsd hardenedbsd

freebsd-sandbox's Introduction

freebsd-sandbox

Travis (.com) branch: Build Status

Travis (.com) dragonflybsd branch: Build Status

Travis (.com) hardenedbsd branch: Build Status

freebsd docker-base image(experimental)

hostnamectl
  Static hostname: vg-docker-01
        Icon name: computer-vm
          Chassis: vm
       Machine ID: 3e886f65de8e45aa99bd9f0f2d00ad51
          Boot ID: 37046bf1cd014fb8aac7a4deb9444c17
   Virtualization: kvm
 Operating System: CentOS Linux 7 (Core)
      CPE OS Name: cpe:/o:centos:centos:7
           Kernel: Linux 3.10.0-1062.9.1.el7.x86_64
     Architecture: x86-64


$ docker --version
Docker version 19.03.5, build 633a0ea     

$ ls -l /vagrant/dockerfiles/freebsd/
total 217469
-rw-rw-rw-. 1 vagrant vagrant 161218776 Nov  1 05:11 base.txz
-rwxrwxrwx. 1 vagrant vagrant       401 Jan 19 00:03 Dockerfile.freebsd

$ wget https://download.freebsd.org/ftp/releases/amd64/12.1-RELEASE/base.txz

$ cat /vagrant/dockerfiles/freebsd/Dockerfile.freebsd
# http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/12.1-RELEASE/
# https://stackoverflow.com/questions/54158342/cannot-run-freebsd-terminal-in-docker-container
# host must be FreeBSD

FROM scratch
LABEL Description="FreeBSD 12.1-RELEASE base installation"

ADD base.txz /
CMD ["/bin/sh"]

$ sudo docker image ls
freebsd                         12.2                e6cf098a1ce8        31 hours ago        1.13GB

$ sudo docker run --rm -it freebsd:12.2 /bin/sh

vagrant up

shared folder cfg

windows host ==> "."
vagrant vm guest ==> "/tmp/vagrant"

verify after login
>vagrant ssh
$ ls /
COPYRIGHT       boot            entropy         home            libexec         mnt             proc            root            sys             usr             zroot
bin             dev             etc             lib             media           net             rescue          sbin            tmp             var

$ ls /tmp/vagrant
README.md               Vagrantfile             Vagrantfile.orig        playbook.yml            provisioning            vagrant-shell

$ ls /tmp/vagrant/provisioning/
deploy.yml              roles                   servers_list.yml

Vagrantfile:
config.vm.synced_folder ".", "/tmp/vagrant"

$ pkg search ansible
py27-ansible-2.8.5             Radically simple IT automation
py27-ansible-lint-4.1.0_2      Checks playbooks for sub-optimal practices and behaviour
py27-ansible-runner-1.4.4      Extensible embeddable ansible job runner
py27-ansible1-1.9.6_5          Radically simple IT automation
py27-ansible23-2.3.3.0_4       Radically simple IT automation
py27-ansible24-2.4.6.0_3       Radically simple IT automation
py27-ansible25-2.5.15_2        Radically simple IT automation
py27-ansible26-2.6.18          Radically simple IT automation
py27-ansible27-2.7.13          Radically simple IT automation
py27-ploy_ansible-1.4.1        Plugin to integrate Ansible with ploy
py36-ansible-2.8.5             Radically simple IT automation
py36-ansible-lint-4.1.0_2      Checks playbooks for sub-optimal practices and behaviour
py36-ansible-runner-1.4.4      Extensible embeddable ansible job runner
py36-ansible-sysrc-0.1         Ansible module to set sysvars in rc.conf
py36-ansible23-2.3.3.0_4       Radically simple IT automation
py36-ansible24-2.4.6.0_3       Radically simple IT automation
py36-ansible25-2.5.15_2        Radically simple IT automation
py36-ansible26-2.6.18          Radically simple IT automation
py36-ansible27-2.7.13          Radically simple IT automation

python virtual environment


$ sudo pkg install --yes --quiet python36 py36-pip
$ sudo pip-3.6 install virtualenv

% which python3.6
/usr/local/bin/python3.6  
% python3.6-version
Python 3.6.9

$ sudo pip-3.6 install virtualenv
$ virtualenv --version
16.7.8

$ virtualenv /home/vagrant/venvansible

$ . /home/vagrant/venvansible/bin/activate
(venvansible) $ deactivate
$

(venvansible) $ pip install ansible

sudo pip freeze > /tmp/vagrant/requirements.txt
pip freeze > requirements.txt
pip install -r requirements.txt

https://www.freebsd.org/
https://www.dragonflybsd.org/
https://hardenedbsd.org/

freebsd-sandbox's People

Contributors

githubfoam avatar

Stargazers

 avatar

Watchers

 avatar

freebsd-sandbox's Issues

Security Policy violation SECURITY.md

This issue was automatically created by Allstar.

Security Policy Violation
Security policy not enabled.
A SECURITY.md file can give users information about what constitutes a vulnerability and how to report one securely so that information about a bug is not publicly visible. Examples of secure reporting methods include using an issue tracker with private issue support, or encrypted email with a published key.

To fix this, add a SECURITY.md file that explains how to handle vulnerabilities found in your repository. Go to https://github.com/githubfoam/freebsd-sandbox/security/policy to enable.

For more information, see https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-repository.


This issue will auto resolve when the policy is in compliance.

Issue created by Allstar. See https://github.com/ossf/allstar/ for more information. For questions specific to the repository, please contact the owner or maintainer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.