Docker image for ruby 2.6.1 - ruby

It seems like the latest 2.6.1 version is not yet available at Docker Hub
I defined it as follows in Dockerfile and it fails to pull it:
FROM ruby:2.6.1
The official repo for Docker ruby image was updated just 2 days ago to 2.6.1.
Any ideas ? Thank you.

You can get old ruby image form PPC64le.
https://hub.docker.com/r/ppc64le/ruby/tags?page=1
PPC64 explain that in this article.
https://en.wikipedia.org/wiki/Ppc64

Related

Maven version error while trying to install ambari on centos

I am trying to install ambari 2.7.5 on centos 7. I am following the instructions given on this link. When I run the build command for maven I get the following error:
I have installed maven 3.6.3 . And I could not find maven 3.1.0 in apache downloads. So how to resolve this error?
#VK for Ambari-web you have to edit some files and set your versions. If you are having hard time with npm/node version make sure they match the posted versions I gave. In centos7 I am using the epel repository. Sounds like you already got current maven so good to go there.
Also this post is pretty much a duplicate of:
Building Ambari 2.7.5 on CentOS 7 from source, Worked 2 weeks ago, now fails
Its also discussed here:
Ambari 2.7.5 installation failure on CentOS 7
And a jira with another bower file sample:
https://issues.apache.org/jira/browse/AMBARI-25519

Wkhtmltopdf version for Cloud Linux

I have CloudLinux release 7.6 in my server and I used to have wkhtmltopdf linux generic version 0.12.4 previously. I am trying to upgrade wkhtmltopdf to version 0.12.5 and I noticed they no longer have generic linux version.
How do I install the latest version of wkhtmltopdf in my server that uses CloudLinux?
Can I safely install and use the 0.12.5 version for CentOS 7 instead or is my only option is to continue using the 0.12.4 generic linux version on CloudLinux?
I have installed the CentOS 7 build version of Wkhtmltopdf in my CloudLinux Release 7 and its works fine. I have been using it in my production server for a week now and havent had any issues. Since CentOS and CloudLinux are RHEL compatible, it works fine.
I installed the binaries like this:
$ wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
$ rpm -Uvh wkhtmltox-0.12.5-1.centos7.x86_64.rpm
$ which wkhtmltopdf
/usr/local/bin/wkhtmltopdf
Thanks to #Rup in comments who helped me with this.
For those who are using Cloud Linux and need to install the latest version (now 12.6) - you might get dependancy errors using the above method.
I used:
yum install -y https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm
Based on suggestion by ashkulz on Github

'pip install duckling' giving issue

I want to install duckling to work on Rasa nlu training but it is giving issue as mentioned in below image please help me to fix this.enter image description here
As a suitable alternative would you consider running Rasa NLU in docker. The rasa/rasa_nlu:latest-full docker image includes duckling. If you wanted to get started with it and you have docker installed you should be able to just run
docker run rasa/rasa_nlu:latest-full
Then you can interact with Rasa over it's HTTP API https://github.com/RasaHQ/rasa_nlu#example-use
The docker file allow's more complicated setups like over writing the default config file and saving the logs/models/etc to a persistent disk
https://github.com/RasaHQ/rasa_nlu#advanced-docker
I had the same issue! This is basically the issue of jpype modules.
You need to first install the jpype in your environment.
you can use conda install -c conda-forge jpype1
For installing the jpype you can also refer to
official link for jpype installation.
On successful installation of jpype duckiling can be installed using
pip install duckling -U
I hope this would help!
You should download VC+ compiler for windows and then try the pip install.
You can download it here
https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi

Errors with alpine linux 3.5 and ruby 2.0?

I'm trying to Dockerize an old RoR4 app using Alpine linux 3.5 to build a ruby on rails 4 docker image but I'm getting several errors related to ssl. I've tried mutple versions of rails 4.x but nothing works.
Previous to 2.1, ruby depended on openssl system lib but alpine 3.5+ ships with libressl instead of openssl. You can either remove it and replace with openssl or update your app to ruby 2.3+ to use the default libressl alpine lib.
Adding openssel to alpine(tested with 3.5.0):
apk add openssl openssl-dev
You should install or reinstall ruby after this.
Edit: Sorry there are several problems with 2.1-2.2 ruby versions and libressl. Try 2.3+ to be safe.
Example bug of 2.2 with libre: https://github.com/ruby/openssl/issues/40

How to install old version (1.8.3) of docker on OS-X?

There is a nasty bug in Docker 1.9.x that is causing java
processes to hang and frankly hang up the entire container
instance, spinning 100% CPU.
I currently have docker 1.9.1 installed because that is all that
the docker install tool will install. There is no opportunity during
the install process to select any other version.
This is completely preventing me from building a cordova
build container. In my internet research I have found many
others who are encountering the same problem.
I've done some research and seen that others are reporting this
problem does not occur with Docker 1.8.3.
I've searched in vain for some hints on how to install older versions
of docker on OS-X. I tried replacing the boot2docker.iso in ~/.docker/machine/machines/default with the 1.8.3 version downloaded
from here: https://github.com/boot2docker/boot2docker/releases/tag/v1.8.3 but that fails miserably. I am guessing that there are other things about my default machine (which had been created with 1.9.1) that are incompatible with it.
If anybody has hints as to how I could create a new machine or modify
the existing machine to work with 1.8.3 I would very much appreciate
it.
Alternatively, let me know if there is some other installation method that would allow me to specify which version of docker to install.
I figured out that what I needed to do is to find an older version of DockerToolbox and that would install the version of docker that I wanted.
I went to the github repository for DockerToolbox:
https://github.com/docker/toolbox/releases?after=v1.9.
and there I found a link to the 1.8.3 binary:
https://github.com/docker/toolbox/releases/download/v1.8.3/DockerToolbox-1.8.3.pkg
I still had to uninstall my previous installation of docker so I followed the uninstall instructions on this page:
https://medium.com/#itseranga/install-old-version-of-docker-osx-c92ebd5f15f7#.5qh1z0ino
Once I had uninstalled and reinstalled via the legacy DockerToolbox, I managed to build the cordova container:
https://github.com/oren/docker-cordova
without incident.
I've been using the following:
https://get.docker.com/builds/$(uname -s)/$(uname -m)/docker-.tgz
See https://github.com/docker/for-mac/issues/1120.
If you happen to know the build number (e.g. 14937) -- not the git commit you see when running docker --version or docker version -- you can form the URL:
https://download.docker.com/mac/{{ beta | stable}}/{{ version }}.{{ build number }}/Docker.dmg
# example:
https://download.docker.com/mac/stable/1.12.6.14937/Docker.dmg

Resources