How to install JLink in Docker's ubuntu? - image

I want to install JLink in my docker's ubuntu container. I downloaded JLink_Linux_V680_x86_64.deb and copied it from host OS to ubuntu container and tried to run
apt-get install ./JLink_Linux_V680_x86_64.deb
But couldn't install it.
How can I install JLink in the ubuntu container?

You can try below command.
sudo docker cp JLink_Linux_x86_64.deb <container_id>:/home/JLink_Linux_x86_64.deb
ls /home/
dpkg -i /home/JLink_Linux_V647f_x86_64.deb
Check this for more details

Related

How to install elasticsearch5.6 in macos?

Now I am not able to install elasticsearch5.6 in my macos.
brew can't find the formula elasticsearch#5.6.
I executed following command line.
brew install elasticsearch#5.6
but it shows following result.
enter image description here
Please help me to solve this issue.
You can install Elasticsearch version 5.6 as a .tar.gz archive for MacOS using the following link :
https://www.elastic.co/downloads/past-releases/elasticsearch-5-6-0
After downloading, run the command tar -xzvf myfile.tar.gz, you can also refer to these other methods for compressing and uncompressing tar files in macOS
To download elastic search 5.6 an install on a simple command you can use:
wget
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.0.tar.gz
&& tar -xzvf elasticsearch-5.6.0.tar.gz
note: if you don't have wget, to install it just run brew install wget
Otherwise if you don't want to install this version of elasticsearch you can use a docker image:
Install Docker.
Run this command:
docker run -it --rm -p 9200:9200 elasticsearch:5.6-alpine

Dockerfile for windows container-Java-maven-chrome

I am new to docker and I have installed docker for windows server 2016 and it is working fine. However, I am struggling to write a Dockerfile for windows. Can someone translate the below dockerfile to be able to run in windows?? I am trying to build an image that has java8, maven and chrome and chrome driver installed. However, windows based docker daemon has issues with apt-get, wget etc etc
Dockerfile
FROM openjdk
#Install Maven
RUN apt-get update && \apt-get install -y maven && \apt-get clean
# Install Chrome
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
# install chromedriver
#RUN apt-get install -yqq unzip
RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
copy ..

docker current not installed - bash on ubuntu on windows 10

I've installed docker on bash on ubuntu on windows 10:
sudo apt-get install -y docker
but when i try to use it:
docker -v
it gives me the following error:
The program 'docker' is currently not installed. You can install it by typing:
sudo apt-get install docker
When I try to reinstall it, I get this message:
docker is already the newest version.
UPDATE:
It seems that one of the pre-requisites for installing docker this way: https://docs.docker.com/engine/installation/linux/ubuntulinux/ which works on my dedicated ubuntu machine is:
your kernel must be 3.10 at minimum
Whereas ubuntu on win 10 is 3.4
Is there a way to update this?
Run it as root :
sudo docker -v

Install docker-machine on OSX WITHOUT Docker Toolbox

Am I correct to assume that installing Docker Toolbox is now the required method for installing docker-machine on OSX? I have a script that I've been using for onboarding my team of developers, which installs docker related tools like docker-machine, but it pulls it in through curl. This stopped working with the latest version. All their documentation says I need to install Docker Toolbox, with no indication of an alternative. Is there still a way to install it through the command line?
I installed virtualbox, docker, docker-machine and docker-compose all via homebrew, and worked like a charm to me.
$ brew install docker docker-compose docker-machine
if you don't have installed virtualbox, you could install it using homebrew cask.
$ brew cask install virtualbox
One important thing you obtain when you installing it this way, is the bash completion. You need to install bash-completion, previously, for this benefit.
$ brew install bash-completion
Answered my own question. It's undocumented, but if you go to their github page, then click on releases, you'll see all the latest releases for the OS you're looking for. https://github.com/docker/machine/releases. Find the download you need, then run this:
$ curl -L https://github.com/docker/machine/releases/download/v0.4.0/docker-machine_darwin-amd64 > /usr/local/bin/docker-machine
$ chmod +x /usr/local/bin/docker-machine
You can install it also with Homebrew
$ brew install docker-machine

How to mount HDFS on Ubuntu 14.04

So,I can't mount HDFS on Ubuntu 14.04. Mucommander not working, fuse not working, can somebody explain me with images or make me some tutorial. Thanks, best regards.
I successfuly did it today using instructions on Cloudera site
wget http://archive.cloudera.com/cdh5/one-click-install/trusty/amd64/cdh5-repository_1.0_all.deb
sudo dpkg -i cdh5-repository_1.0_all.deb
sudo apt-get update
sudo apt-get install hadoop-hdfs-fuse
sudo mkdir -p <mount_point>
hadoop-fuse-dfs dfs://<name_node_hostname>:<namenode_port> <mount_point>
What OS and version of HDFS do you use?
You have to add the CDH5 repository first (tested on 15.04):
wget http://archive.cloudera.com/cdh5/one-click-install/trusty/amd64/cdh5-repository_1.0_all.deb
sudo dpkg -i cdh5-repository_1.0_all.deb
sudo apt-get update
Then proceed with #AlexDvoretsky's answer.
Alternative instructions for CDH5 repository installation on Ubuntu 16.04: From Cloudera.
sudo wget 'https://archive.cloudera.com/cdh5/debian/wheezy/amd64/cdh/cloudera.list' -O /etc/apt/sources.list.d/cloudera.list
sudo apt-get update
sudo apt-get install hadoop-hdfs-fuse
Then back to #AlexDvoretsky's answer
I developed a python program that uses FUSE to mount HDFS as a standard filesystem, it also works with Kerberos and it works well: https://github.com/EDS-APHP/py-hdfs-mount

Resources