How do i install ddev on Digital ocean - digital-ocean

Digital ocean has a simple way to setup Ubuntu 16.0 which comes with docker 17.10 and docker-compose 1.1.
However, due to some issues with 17.10, you might have issues working with, but ddev can still run very well on docker 17.10, just to avoid future issues, you can follow the steps in the answer below.

Digital ocean wont cost you much to set up, it comes with free 100 USD credit and spinning a new server cost 0.003/hour
To start
Register on Digital ocean
Create a new droplet(select Ubuntu 16.04), like i said in the question above, you can decide to follow one-click app installation which comes with docker && docker-compose but with old versio, but they still met the ddev requirements.
Digital ocean; how to install ddev
Your login credentials will be sent to your email
your new droplet comes with fresh Ubuntu installation and you can proceed to install docker, docker-compose and ddev
Installing docker
To install docker follow this doc to have latest docker on your machine
Installing docker compose
To install docker compose follow this doc.
Finally
Install ddev by following official ddev documentation

Related

Rasa not installing on Digital Ocean

I am trying to install rasa 2.0.0 on digital ocean. I created a directory for the bot and created a virtual environment using ubantu 20.04 and python 3.8.5. After the virtualenv is activated i ran pip install rasa==2.0.0 as well as pip3 install rasa==2.0.0.
The installation goes upto tensorflow installation and killed word is appearing. It exits the process but on rasa or rasa train it doesn't execute. There were no errors too.
I have a django website serving on the ip and want this bot to serve through a different port to clients having websites. Can you please suggest how can I proceed ??
The minimum ram for the droplets to install RASA is 4.0 due to tensorflow.

Drupal 8: Composer install issue

I have 2 AWS EC2 instances (servers).
I have same code on both servers.
On 1st server I have composer version 1.7.2. Which works FINE.
On 2nd server I have composer version 1.9.3. Which is not working fine.
So on 2nd server when I run composer install it will not install some of the modules & it is not applying some of that patches which I have applied for code.
I don't think so it is version issue.
The issue is it's missing
yum install patch

Django channels integrating with django

I'm following django channels tutorial in order to integrate it with django. But, at one point I confronted with error which I can't solve. In terminal Django says:
[Errno 111] Connect call failed ('127.0.0.1', 6379)
I think that problem is about with these lines in tutorial:
We will use a channel layer that uses Redis as its backing store. To start a Redis server on port 6379, run the following command:
$ docker run -p 6379:6379 -d redis:2.8
I'm working in Linux Ubuntu 17.04 and can't run command shown in above. When I run that command ubuntu terminal says:
docker: command not found
Result is still the same after installing 'docker' with 'sudo apt-get install docker'. How can I solve this problem? Is there other way to start redis server on specified port without installing docker?
From the first page of the tutorial:
This tutorial also uses Docker to install and run Redis. We use Redis as the backing store for the channel layer, which is an optional component of the Channels library that we use in the tutorial. Install Docker from its official website.
So, install docker on your ubuntu system, and the command docker will become available.

EB CLI requires the 'docker' Python package

I'm not sure if this is Docker, the Elastick Beanstalk, or docker image issue related, but my problem is that I'm running the command eb local run to start the local environment alongside with docker.
Expected behavior
The command runs seamlessly
Actual behavior
ERROR: DockerVersionError - Your local host has the 'docker-py' version 1.10.6 Python package installed on it.
When you run a Multicontainer Docker application locally, the EB CLI requires the 'docker' Python package.
To fix this error:
Be sure that no applications on your local host require 'docker-py', and then run this command:
pip uninstall docker-py
The EB CLI will install 'docker' the next time you run it.
$ eb --version : EB CLI 3.12.2 (Python 2.7.1)
$ docker -v : Docker version 17.12.0-ce, build c97c6d6
If you want to launch multi-container Dockers using eb local run, you need to have uninstalled docker-py, and installed docker
As the error message indicates:
perform pip uninstall docker-py ** if you don't need it **.
run pip install "docker>=2.6.0,<2.7" immediately after
docker and docker-py cannot coexist. These release notes highlight the change in the package name. These release notes allude to the breakage the change in package name caused.
Not to be confused with Docker, the engine/client, docker-py/docker is a Python wrapper around the Docker client which the EBCLI relies on.

How to uninstall openjdk on amazon ec2 micro instance running Redhat Linux

I have Installed OpenJdk on my redhat instance recently. Now am in need to go for Java Jdk. I saw some sites for replacement but none working for me. Thanks in advance..
Install the JDK , then written to the terminal.
alternatives --config java
Enter the number
I work in fedora , try it in Red Hat.
Spring boot application is failed to start on AWS EC2 instance because of JDK old version is running on EC2 Instance. I have run following command to set updated version 1.8 from 1.7.
Follow command:
sudo yum install java-1.8.0
sudo /usr/sbin/alternatives --config java