Deploy on dokku.autonomic.zone #1

Closed
opened 2020-04-16 17:23:25 +00:00 by decentral1se · 5 comments
Collaborator

Let's do it the manual way, so you learn how to work with Dokku.

Here's an SSH config for dokku.autonomic.zone.

Host dokku.autonomic.zone
  Hostname dokku.autonomic.zone
  User kawaiipunk
  Port 222
  IdentityFile ~/.ssh/{yourprivatekey}
  1. SSH to the Dokku server with ssh dokku.autonomic.zone. Your sudo password is in the pass store which you'll need to interact with the dokku command.
  2. Now, create an application with dokku apps:create kawaiipunk.xyz. Then set the domain for that application with dokku domains:add kawaiipunk.xyz kawaiipunk.xyz.
  3. Make sure you have your kawaiipunk.xyz DNS A record pointed at the dokku.autonomic.zone machine which is 94.130.105.60. You can check quickly with sudo apt install dnsutils && dig +short dokku.autonomic.zone. It has to already be switched over for lets encrypt certificates to be configured properly.
  4. In your local git clone of this repository, run git remote add dokku dokku@dokku.autonomic.zone:kawaiipunk.xyz
  5. Run git push dokku. Your site should be live at https://kawaiipunk.xyz.

If you have issues, post 'em here!

Let's do it the manual way, so you learn how to work with Dokku. Here's an SSH config for `dokku.autonomic.zone`. ``` Host dokku.autonomic.zone Hostname dokku.autonomic.zone User kawaiipunk Port 222 IdentityFile ~/.ssh/{yourprivatekey} ``` 1. SSH to the Dokku server with `ssh dokku.autonomic.zone`. Your sudo password is in the pass store which you'll need to interact with the dokku command. 1. Now, create an application with `dokku apps:create kawaiipunk.xyz`. Then set the domain for that application with `dokku domains:add kawaiipunk.xyz kawaiipunk.xyz`. 1. Make sure you have your `kawaiipunk.xyz` DNS A record pointed at the `dokku.autonomic.zone` machine which is `94.130.105.60`. You can check quickly with `sudo apt install dnsutils && dig +short dokku.autonomic.zone`. It has to already be switched over for lets encrypt certificates to be configured properly. 1. In your local git clone of this repository, run `git remote add dokku dokku@dokku.autonomic.zone:kawaiipunk.xyz` 1. Run `git push dokku`. Your site should be live at https://kawaiipunk.xyz. If you have issues, post 'em here!
Owner

Hmm ok, so I followed those steps. It all went as expected but we're missing two steps from the instructions.

Creating a .drone.yml file and manually activating the repo on drone.

Hmm ok, so I followed those steps. It all went as expected but we're missing two steps from the instructions. Creating a .drone.yml file and manually activating the repo on drone.
Author
Collaborator

First one for the .drone.yml file is:

---
kind: pipeline
name: default
steps:
  - name: Deploy wiki with Dokku
    image: appleboy/drone-git-push:0.2.0-linux-amd64
    settings:
      remote: ssh://dokku@dokku.autonomic.zone:222/kawaiipunk.xyz
      ssh_key:
        from_secret: drone_deploy_key
trigger:
  branch:
    - master
First one for the .drone.yml file is: ``` --- kind: pipeline name: default steps: - name: Deploy wiki with Dokku image: appleboy/drone-git-push:0.2.0-linux-amd64 settings: remote: ssh://dokku@dokku.autonomic.zone:222/kawaiipunk.xyz ssh_key: from_secret: drone_deploy_key trigger: branch: - master ```
Author
Collaborator

And the other missing step was:

So you just need to do pass show deploy_key/drone | xclip and then add that as "drone_deploy_key" in the drone settings config

And the other missing step was: > So you just need to do `pass show deploy_key/drone | xclip` and then add that as "drone_deploy_key" in the drone settings config
Owner

Everything done broke

Everything done broke
Owner

Sorted, closing!

Sorted, closing!
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kawaiipunk/walkaway-wiki#1
No description provided.