Last active
December 22, 2017 11:52
-
-
Save hakatashi/fe59c3d02c6a795883dc274a62602e60 to your computer and use it in GitHub Desktop.
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
$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'debian/jessie64'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Setting the name of the VM: endroll2_default_1513939545116_51603 | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
==> default: Forwarding ports... | |
default: 3000 (guest) => 3000 (host) (adapter 1) | |
default: 4000 (guest) => 4000 (host) (adapter 1) | |
default: 22 (guest) => 2222 (host) (adapter 1) | |
==> default: Running 'pre-boot' VM customizations... | |
==> default: Resized disk: old 10140 MB, req 20480 MB, new 20480 MB | |
==> default: You may need to resize the filesystem from within the guest. | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2222 | |
default: SSH username: vagrant | |
default: SSH auth method: private key |
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: == 20171010023049 AddForeignKeyToAccountModerationNotes: migrated (0.0022s) === | |
default: Migrating to ChangeAccountsNonnullableInAccountModerationNotes (20171010025614) | |
default: == 20171010025614 ChangeAccountsNonnullableInAccountModerationNotes: migrating | |
default: -- change_column_null(:account_moderation_notes, :account_id, false) | |
default: -> 0.0006s | |
default: -- change_column_null(:account_moderation_notes, :target_account_id, false) | |
default: -> 0.0005s | |
default: == 20171010025614 ChangeAccountsNonnullableInAccountModerationNotes: migrated (0.0020s) | |
default: Starting mastodon_redis_1 ... | |
default: Starting mastodon_db_1 ... | |
Starting mastodon_redis_1 ... done | |
Starting mastodon_db_1 ... done | |
default: Creating mastodon user (UID : 991 and GID : 991)... | |
default: Updating permissions... | |
default: Executing process... | |
default: Enter email: Enter username: Create user and send them confirmation mail [y/N]: | |
default: [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: de8165da-1c2d-45d8-8f19-4d652c6332a4) to Sidekiq(mailers) with arguments: "UserMailer", "confirmation_instructions", "deliver_now", #<GlobalID:0x0000560ad02d5920 @uri=#<URI::GID gid://mastodon/User/1>>, "JskqaJzGUypJeX1zTLFx", {} | |
default: User added and confirmation mail sent to user's email address. | |
default: Here is the random password generated for the user: db27b01c2514717205ebcd9da3d58028 | |
default: Starting mastodon_redis_1 ... | |
Starting mastodon_redis_1 ... done | |
default: Starting mastodon_db_1 ... | |
default: Starting mastodon_db_1 ... done | |
default: Creating mastodon user (UID : 991 and GID : 991)... | |
default: Updating permissions... | |
default: Executing process... | |
default: [email protected] confirmed | |
default: Starting mastodon_redis_1 ... | |
Starting mastodon_redis_1 ... done | |
default: Starting mastodon_db_1 ... | |
default: Starting mastodon_db_1 ... done | |
default: Creating mastodon user (UID : 991 and GID : 991)... | |
default: Updating permissions... | |
default: Executing process... | |
default: I, [2017-12-22T11:34:36.564601 #142] INFO -- : Writing /mastodon/public/assets/doorkeeper/admin/application-50d68ad91b15067c63771e4811d971d7a56406c472a878021d1fb95d066efd8d.css | |
default: I, [2017-12-22T11:34:36.565173 #142] INFO -- : Writing /mastodon/public/assets/doorkeeper/admin/application-50d68ad91b15067c63771e4811d971d7a56406c472a878021d1fb95d066efd8d.css.gz | |
default: I, [2017-12-22T11:34:36.575658 #142] INFO -- : Writing /mastodon/public/assets/doorkeeper/application-29873392fba1f6a4fd5359214f854d900e24920096164f6e5343dbc0de69df0d.css | |
default: I, [2017-12-22T11:34:36.575819 #142] INFO -- : Writing /mastodon/public/assets/doorkeeper/application-29873392fba1f6a4fd5359214f854d900e24920096164f6e5343dbc0de69df0d.css.gz | |
default: I, [2017-12-22T11:34:43.427099 #142] INFO -- : Writing /mastodon/public/assets/pghero/application-a013dbdf269bc5d5f3610778edb4075c172f162ee90827f8839c4e8128a3a54d.js | |
default: I, [2017-12-22T11:34:43.428493 #142] INFO -- : Writing /mastodon/public/assets/pghero/application-a013dbdf269bc5d5f3610778edb4075c172f162ee90827f8839c4e8128a3a54d.js.gz | |
default: I, [2017-12-22T11:34:43.439274 #142] INFO -- : Writing /mastodon/public/assets/pghero/application-c2618b70600dfedb0f3ba1f916d97a2f93a3f265aba10356abb763bd663d0cbd.css | |
default: I, [2017-12-22T11:34:43.439566 #142] INFO -- : Writing /mastodon/public/assets/pghero/application-c2618b70600dfedb0f3ba1f916d97a2f93a3f265aba10356abb763bd663d0cbd.css.gz | |
default: Webpacker is installed 🎉 🍰 | |
default: Using /mastodon/config/webpacker.yml file for setting up webpack paths | |
default: Compiling… | |
default: Compiled all packs in /mastodon/public/packs | |
default: mastodon_redis_1 is up-to-date | |
default: mastodon_db_1 is up-to-date | |
default: Creating mastodon_sidekiq_1 ... | |
default: Creating mastodon_web_1 ... | |
default: Creating mastodon_streaming_1 ... | |
default: Creating mastodon_sidekiq_1 | |
default: Creating mastodon_web_1 | |
default: Creating mastodon_streaming_1 | |
Creating mastodon_web_1 ... done | |
Creating mastodon_sidekiq_1 ... done | |
Creating mastodon_streaming_1 ... done | |
==> default: Machine 'default' has a post `vagrant up` message. This is a message | |
==> default: from the creator of the Vagrantfile, and not from Vagrant itself: | |
==> default: | |
==> default: Vanilla Debian box. See https://app.vagrantup.com/debian for help and bug reports |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "debian/jessie64" | |
config.vm.box_version = "8.10.0" | |
config.vm.box_check_update = false | |
config.vm.network "forwarded_port", guest: 3000, host: 3000 | |
config.vm.network "forwarded_port", guest: 4000, host: 4000 | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "2048" | |
end | |
config.vm.provision "docker" | |
config.vm.provision "shell", inline: <<-'SHELL' | |
sudo apt-get install docker-ce=17.10.0~ce-0~debian -y --force-yes | |
sudo curl -L https://github.com/docker/compose/releases/download/1.17.1/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
/usr/local/bin/docker-compose --version | |
sudo apt-get install git -y | |
git clone https://github.com/tootsuite/mastodon -b v2.0.0 | |
cd mastodon | |
cp .env.production.sample .env.production | |
sed -i 's/LOCAL_HTTPS=true/LOCAL_HTTPS=false/' .env.production | |
/usr/local/bin/docker-compose build | |
sed -i "s/PAPERCLIP_SECRET=/PAPERCLIP_SECRET=`/usr/local/bin/docker-compose run --rm web rake secret | grep '^.\{128\}' | tr -d '[:space:]'`/" .env.production | |
sed -i "s/SECRET_KEY_BASE=/SECRET_KEY_BASE=`/usr/local/bin/docker-compose run --rm web rake secret | grep '^.\{128\}' | tr -d '[:space:]'`/" .env.production | |
sed -i "s/OTP_SECRET=/OTP_SECRET=`/usr/local/bin/docker-compose run --rm web rake secret | grep '^.\{128\}' | tr -d '[:space:]'`/" .env.production | |
/usr/local/bin/docker-compose run --rm web rake db:migrate | |
echo -e '[email protected]\nmastodon\ny\n' | /usr/local/bin/docker-compose run --rm web rails mastodon:add_user | |
/usr/local/bin/docker-compose run --rm web rails mastodon:confirm_email [email protected] | |
/usr/local/bin/docker-compose run --rm web rake assets:precompile | |
/usr/local/bin/docker-compose up -d | |
SHELL | |
end |
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
$ VBoxManage list hdds | |
UUID: 68513cd6-b75e-4820-8fbc-6099b052abaf | |
Parent UUID: base | |
State: inaccessible | |
Type: normal (base) | |
Location: /home/denjo/VirtualBox VMs/endroll_default_1513408340608_96512/jessie.vmdk | |
Storage format: VMDK | |
Capacity: 0 MBytes | |
Encryption: disabled | |
UUID: 9a3e9106-d4df-4b8c-a57d-8379a08ca66b | |
Parent UUID: base | |
State: created | |
Type: normal (base) | |
Location: /home/denjo/VirtualBox VMs/endroll_default_1513408340608_96512/jessie.vdi | |
Storage format: VDI | |
Capacity: 20480 MBytes | |
Encryption: disabled | |
UUID: d0cceeaa-a3a1-4e73-9b2e-9d2044717674 | |
Parent UUID: base | |
State: inaccessible | |
Type: normal (base) | |
Location: /home/denjo/VirtualBox VMs/endroll2_default_1513939545116_51603/jessie.vmdk | |
Storage format: VMDK | |
Capacity: 10140 MBytes | |
Encryption: disabled | |
UUID: 96d65344-5841-4102-aeaf-6ff2b5d8904d | |
Parent UUID: base | |
State: inaccessible | |
Type: normal (base) | |
Location: /home/denjo/VirtualBox VMs/endroll2_default_1513939669455_96913/jessie.vmdk | |
Storage format: VMDK | |
Capacity: 10140 MBytes | |
Encryption: disabled | |
UUID: 46271d5e-dc77-40c4-a6bd-a76c1b591966 | |
Parent UUID: base | |
State: locked write | |
Type: normal (base) | |
Location: /home/denjo/VirtualBox VMs/endroll2_default_1513939669455_96913/jessie.vdi | |
Storage format: VDI | |
Capacity: 20480 MBytes | |
Encryption: disabled | |
$ ls /home/denjo/VirtualBox\ VMs/endroll2_default_1513939669455_96913/jessie.vdi -lah | |
-rw------- 1 denjo denjo 4.8G Dec 22 20:51 /home/denjo/VirtualBox VMs/endroll2_default_1513939669455_96913/jessie.vdi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment