Skip to content

Instantly share code, notes, and snippets.

@akhdaniel
Last active February 2, 2025 16:02
Show Gist options
  • Save akhdaniel/3be41bf848dd5b61ae77c98e798563b9 to your computer and use it in GitHub Desktop.
Save akhdaniel/3be41bf848dd5b61ae77c98e798563b9 to your computer and use it in GitHub Desktop.

Revisions

  1. akhdaniel revised this gist Jun 2, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -26,6 +26,9 @@ Kalau di Digital Ocean, pakai VM:
    Additional Volume:
    * 100 GB


    [Reference: Opendax] (https://www.openware.com/product/opendax

    2 Install Docker and docker compose
    ======================================

  2. akhdaniel revised this gist Jun 2, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -193,6 +193,8 @@ Edit config/app.yml on opendax, and set btc wallet addresses.
    10 Modifikasi baseapp
    ===========================

    [Referensi](https://www.youtube.com/watch?v=6f4rwwfnK6o)

    ```bash
    git clone http://github.com/openware/baseapp
    ```
  3. akhdaniel revised this gist Jun 2, 2021. 1 changed file with 52 additions and 0 deletions.
    52 changes: 52 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,9 @@ Minimum VM requirements for OpenDAX:
    * 4 cores vCPU (6 cores recommended)
    * 300GB disk space (SSD recommended)

    Space utk bitcoind dan parity eth:
    * bitcoind 300GB
    * Parity 200GB

    Siapkan domain name dan subdomain aplikasi, misalnya:
    * zavala.store
    @@ -187,3 +190,52 @@ exit

    Edit config/app.yml on opendax, and set btc wallet addresses.

    10 Modifikasi baseapp
    ===========================

    ```bash
    git clone http://github.com/openware/baseapp
    ```

    Edit file2 yang diperlukan misalnya logo, text dll.

    Build dockerfile

    ```bash
    docker build -t akhdaniel/baseapp-2-6-stable
    ```

    Push ke dockerhub juga beda server.

    Edit config/app.yml, bagian images, ganti images frontend dgn baseapp yang baru diatas

    Restart frontend service

    ```bash
    rake service:frontend
    ```


    11 Edit template email
    =======================

    template email ada di config/mailer/template:

    * deposit_accepted.en.html.erb
    * email_confirmation.en.html.erb
    * email_confirmation.ru.html.erb
    * label.en.html.erb
    * new_beneficiary.en.html.erb
    * password_reset.en.html.erb
    * password_reset.ru.html.erb
    * session_create.en.html.erb
    * withdraw_succeed.en.html.erb


    12 Edit user seed admin
    ========================

    User dan password seed admin ada di: templates/config/barong/seeds.yml.erb

    Restart service setelah edit template seed

  4. akhdaniel revised this gist May 28, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -182,5 +182,8 @@ bitcoin-cli --rpcuser=admin --rpcpassword=changeme --rpcport=18332 getnewaddress
    bitcoin-cli --rpcuser=admin --rpcpassword=changeme --rpcport=18332 getnewaddress "cold"
    2NCUonBmTpVYWFwecy1G3Af28EAQDTyUMfp

    exit
    ```

    Edit config/app.yml on opendax, and set btc wallet addresses.

  5. akhdaniel revised this gist May 28, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion opendax install.md
    Original file line number Diff line number Diff line change
    @@ -161,7 +161,7 @@ docker exec -it coingue_parity_1 parity --chain kovan account new
    9 Start bitcoind node
    ===============

    ``bash
    ```bash
    docker-compose up -Vd bitcoind
    ```

  6. akhdaniel revised this gist May 28, 2021. 1 changed file with 26 additions and 0 deletions.
    26 changes: 26 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -158,3 +158,29 @@ docker exec -it coingue_parity_1 parity --chain kovan account new
    ```


    9 Start bitcoind node
    ===============

    ``bash
    docker-compose up -Vd bitcoind
    ```
    Create bitcod wallet address
    ```bash
    docker exec -it coingue_bitcoind_1 /bin/bash
    bitcoin-cli --rpcuser=admin --rpcpassword=changeme --rpcport=18332 getnewaddress "hot"
    2N9b3J4waabZ32M1BcqV2SavRKFkwtDae1k
    bitcoin-cli --rpcuser=admin --rpcpassword=changeme --rpcport=18332 getnewaddress "deposit"
    2NBFCgo58WiB8ftye5xPAwydreLYmcaidcb
    bitcoin-cli --rpcuser=admin --rpcpassword=changeme --rpcport=18332 getnewaddress "warm"
    2N9JP2aC4tdAnoxSWNLyoEPuG2ey17y5oeZ
    bitcoin-cli --rpcuser=admin --rpcpassword=changeme --rpcport=18332 getnewaddress "cold"
    2NCUonBmTpVYWFwecy1G3Af28EAQDTyUMfp
    ```

  7. akhdaniel revised this gist May 27, 2021. 1 changed file with 29 additions and 0 deletions.
    29 changes: 29 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -129,3 +129,32 @@ rake service:all[restart]
    rake service:all[stop]
    ```


    7 Start parity ethereum node
    =============================
    Disabe/Enable cryptonodes
    ```bash
    vi compose/cryptonodes.yaml
    ```

    Start the enabled cryptonodes

    ```bash
    rake service:cryptonodes
    ```

    View logs

    ```bash
    docker logs coingue_parity_1
    docker logs coingue_blockchain_1
    ```

    8 Create Account for deposit, hot, warm, etc
    ==============================
    ```bash
    docker exec -it coingue_parity_1 parity --chain kovan account new
    ```


  8. akhdaniel revised this gist May 21, 2021. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -115,8 +115,9 @@ Dia akan menjalankan banyak docker containers yg berupa micro services OpenDAX
    ============================

    Seeded users:
    Email: [email protected], password: 0lDHd9ufs9t@
    Email: [email protected], password: Am8icnzEI3d!

    * Email: [email protected], password: 0lDHd9ufs9t@
    * Email: [email protected], password: Am8icnzEI3d!



  9. akhdaniel revised this gist May 21, 2021. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion opendax install.md
    Original file line number Diff line number Diff line change
    @@ -93,6 +93,7 @@ Setup key, misalnya :

    6 Jalankan opendax
    =========================

    ```
    rake service:all
    ```
    @@ -107,7 +108,7 @@ Dia akan menjalankan banyak docker containers yg berupa micro services OpenDAX
    * vault
    * rabbitmq
    * influxdb
    *



    5 Tes login
    @@ -118,3 +119,12 @@ Email: [email protected], password: 0lDHd9ufs9t@
    Email: [email protected], password: Am8icnzEI3d!



    6 Start, Restart, Stop
    =========================

    ```
    rake service:all[restart]
    rake service:all[stop]
    ```
  10. akhdaniel revised this gist May 21, 2021. 1 changed file with 42 additions and 17 deletions.
    59 changes: 42 additions & 17 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -23,19 +23,7 @@ Kalau di Digital Ocean, pakai VM:
    Additional Volume:
    * 100 GB


    2 Siapkan VM
    ======================================

    Jalankan command:

    ```
    useradd -g users -s `which bash` -m app
    usermod -aG sudo app
    ```

    3 Install Docker and docker compose
    2 Install Docker and docker compose
    ======================================

    Copas dari sini:
    @@ -48,7 +36,18 @@ Lengkapnya disini:
    * [Docker install](https://docs.docker.com/install/)
    * [Docker Compose install](https://docs.docker.com/compose/install/)

    3 Siapkan User VM
    ======================================

    Jalankan command:

    ```
    useradd -g users -s `which bash` -m app
    usermod -aG sudo app
    usermod -aG docker app
    passwd app
    ```


    4 Install opendax , rvm, dan Ruby
    @@ -58,30 +57,56 @@ Pindah ke folder mounting volume yang 100Gb

    ```
    cd /mnt/volume_sgp1_02
    su - app
    git clone https://github.com/openware/opendax.git
    mkdir projects
    chown -R app projects
    gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    curl -sSL https://get.rvm.io | bash -s stable
    sudo usermod -a -G rvm app
    su - app
    cd /mnt/volume_sgp1_02/projects
    git clone https://github.com/openware/opendax.git
    cd opendax
    rvm install "ruby-2.6.6" # kalau ditanya pasword, masukkan password user app (ini perintah sudo)
    rvm install .
    gem install bundler:2.1.4
    bundle install
    rake -T # To see if ruby and lib works
    ```

    5 Edit config file
    =========================
    Edit config/app.yml
    ```
    vi config/app.yml
    ```

    Setup key, misalnya :
    * name: CoinGue
    * domain: zavala.store
    * subdomain: app

    6 Jalankan opendax
    =========================
    ```
    rake service:all
    ```

    Dia akan menjalankan banyak docker containers yg berupa micro services OpenDAX
    * baseapp = frontend app
    * barong = auth app
    * paetio = core exchange
    * traefik
    * redis
    * mysql
    * vault
    * rabbitmq
    * influxdb
    *


  11. akhdaniel revised this gist May 21, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -54,7 +54,10 @@ Lengkapnya disini:
    4 Install opendax , rvm, dan Ruby
    =======================================

    Pindah ke folder mounting volume yang 100Gb

    ```
    cd /mnt/volume_sgp1_02
    su - app
    git clone https://github.com/openware/opendax.git
  12. akhdaniel revised this gist May 21, 2021. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -40,6 +40,15 @@ usermod -aG sudo app

    Copas dari sini:

    [Docker Ubuntu Step by Step](https://gist.github.com/akhdaniel/7af324e9d8dcbbb243e3609dc5a49f9c)


    Lengkapnya disini:

    * [Docker install](https://docs.docker.com/install/)
    * [Docker Compose install](https://docs.docker.com/compose/install/)




    4 Install opendax , rvm, dan Ruby
  13. akhdaniel revised this gist May 21, 2021. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -66,6 +66,13 @@ rake -T # To see if ruby and lib works
    rake service:all
    ```

    Dia akan menjalankan banyak docker containers yg berupa micro services OpenDAX
    * baseapp = frontend app
    * barong = auth app
    * paetio = core exchange
    *


    5 Tes login
    ============================

  14. akhdaniel revised this gist May 21, 2021. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -15,11 +15,20 @@ Siapkan domain name dan subdomain aplikasi, misalnya:

    Arahkan kedua domain tersebut ke IP public VM.

    Kalau di Digital Ocean, pakai VM:
    * 4 GB / 2 CPUs
    * 80 GB SSD Disk
    * 4 TB transfer

    Additional Volume:
    * 100 GB


    2 Siapkan VM
    ======================================

    Jalankan command:

    ```
    useradd -g users -s `which bash` -m app
    usermod -aG sudo app
  15. akhdaniel revised this gist May 21, 2021. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion opendax install.md
    Original file line number Diff line number Diff line change
    @@ -22,25 +22,32 @@ Arahkan kedua domain tersebut ke IP public VM.
    Jalankan command:
    ```
    useradd -g users -s `which bash` -m app
    usermod -aG sudo app
    ```

    3 Install Docker and docker compose
    ======================================

    Copas dari sini
    Copas dari sini:



    4 Install opendax , rvm, dan Ruby
    =======================================

    ```
    su - app
    git clone https://github.com/openware/opendax.git
    gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    curl -sSL https://get.rvm.io | bash -s stable
    sudo usermod -a -G rvm app
    cd opendax
    rvm install .
  16. akhdaniel revised this gist May 21, 2021. 1 changed file with 60 additions and 1 deletion.
    61 changes: 60 additions & 1 deletion opendax install.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,60 @@
    opendax

    1 Requiement VM
    =====================================

    Minimum VM requirements for OpenDAX:

    * 8GB of RAM (12GB recommended)
    * 4 cores vCPU (6 cores recommended)
    * 300GB disk space (SSD recommended)


    Siapkan domain name dan subdomain aplikasi, misalnya:
    * zavala.store
    * app.zavala.store

    Arahkan kedua domain tersebut ke IP public VM.


    2 Siapkan VM
    ======================================

    Jalankan command:
    ```
    useradd -g users -s `which bash` -m app
    ```

    3 Install Docker and docker compose
    ======================================

    Copas dari sini


    4 Install opendax , rvm, dan Ruby
    =======================================

    ```
    su - app
    git clone https://github.com/openware/opendax.git
    gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    curl -sSL https://get.rvm.io | bash -s stable
    cd opendax
    rvm install .
    bundle install
    rake -T # To see if ruby and lib works
    rake service:all
    ```

    5 Tes login
    ============================

    Seeded users:
    Email: [email protected], password: 0lDHd9ufs9t@
    Email: [email protected], password: Am8icnzEI3d!


  17. akhdaniel created this gist May 21, 2021.
    1 change: 1 addition & 0 deletions opendax install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    opendax