Directus 7 in docker add user - directus

I have installed Directus 7 in docker-compose as stated here Directus 7 in docker
but the command
docker-compose run installer install --email your#email.com --password somepass
just hangs until I press CTRL+C.
Who could help how to add a user?

Related

Error response from daemon: Windows does not support privileged mode

I have installed the Docker Tool on my Windows 10 Pro machine.
Have pulled below images from Docker Hub:
docker pull elgalu/selenium
docker pull dosel/zalenium
When I am trying to start zalenium with the below command:
"docker run --rm -ti --name zalenium -p 4444:4444 -v /var/run/docker.sock:/var/run/docker.sock -v /c/Users/<username>:/home/seluser/videos --privileged dosel/zalenium start"
I am getting error:
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error
response from daemon: Windows does not support privileged mode.
I want to start the zalenium with the above command but I could not able to do it, because of this error.
Can anyone assist me on this, please?
Unfortunately you did not provide enough information. Your Windows version, Docker for Windows version, how did you install it, etc.
Officially --priviledged flag is not supported as on the Github thread is already mentioned:
there is no support for privileged containers on Windows in the platform.
It's also confirmed in this thread.
In addition, you might check this thread. It's the same case.
I had the same problem. Update on the newest docker version, fixed the issue.

Installing Apache OpenWhisk using docker-compose on Amazon Linux instance gets stuck at "waiting for the Whisk invoker to come up..."

I am trying to install openwhisk for dev mode using docker compose on Amazon Linux EC2 Instance. I am following this link for doing so https://github.com/apache/incubator-openwhisk -> Get Started.
Although, it has worked for me before once, in this installation, I am facing an issue. These are the steps I followed:
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo chkconfig docker on
sudo yum install -y python-pip
sudo pip install docker-compose
This step is because open whisk is using sudo for docker-compose, and based on previous steps, sudo docker-compose -v gives a command not found.
sudo cp /usr/local/bin/docker-compose /bin
sudo yum install -y git
cd ~
git clone https://github.com/apache/incubator-openwhisk-devtools.git
cd incubator-openwhisk-devtools/docker-compose
sudo make quick-start
Update: The problem is that the make command gets stuck at the stage where it is waiting for invokers.
I have not made any changes to any source code, nor I did any other steps before this on the instance. It was a freshly created instance.
Am I missing something in OpenWhisk or EC2 or the combination of both? Any help would be great.
Update: I tried the docker-compose method for installing open whisk on Amazon Linux 1, Amazon Linux 2, Ubuntu 16.04 as well as Ubuntu 14.04. On all platforms, it got stuck at sudo make quick-start where it is waiting for invokers.
Update: Instead of using python-pip for docker-compose installation, used the command from docker website as well.
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
if docker-compose command is not found it means you didn't install docker-compose correctly.
I don't think you can install docker-compose as a python library using pip
See the instructions here https://docs.docker.com/compose/install/#install-compose
someting like
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
Or take a look at https://medium.com/#khandelwal12nidhi/docker-setup-on-aws-ec2-instance-c670ff3d5f1b

creating docker file to run selenium Javascript based tests

I am trying to create a docker file to run selenium tests for a java script based project. Below is my docker file so far:
#base image
FROM selenium/standalone-chrome
#access to the project within docker container - Bundle app source
COPY ./seleniumTest/project /app
# Install Node.js
RUN sudo apt-get update
RUN sudo apt-get install --yes curl
RUN curl --silent --location https://deb.nodesource.com/setup_8.x | sudo bash -
#binding
EXPOSE 8080
#Define runtime
ENTRYPOINT /app/login.test.js
while building and running the docker image as: $ docker run -p 4000:8080 dockertest2 returns /bin/sh: 1: /app/login.test.js: Permission denied
why is the permission denied for it? P.S: I have changed to the dir which contains both Dockerfile and automation test JS files using (cd dir).
Create a Docker Container with all the dependencies needed for you app to run
Which can be specified in the DockerFile.
Attached a script at Entry point to Start Selenium Server Standalone.
Build and Run your Container and Remember to Bind and Expose the port your selenium is running

How to access Apache2 container working directory in order to change the content of default html?

I have installed apache2 container using docker as below
docker run -d -p 80:80 --name apache httpd:2.4
apache server is running and I am able to see below screen.
But how do I change the content of above screen?
You need to first get inside the image
docker exec -it apache bash
If bash is not there then use sh. After that you need to have a editor installed inside
apt-get update && apt-get install -y nano
nano index.html
And then you can change the content
Edit-1: Files in container
To copy the files you the running container you need to do it like below
docker cp /home/ubuntu/docker-work/sample.html apache:/usr/local/apache2/htdocs/

Step by Step Guide to install Syntaxnet on Window 7 64 bit

Can any body explain the step by step guide to install the Google syntaxtnet framework and the relative dependencies on windows 7 on 64 bit ?
Regards
samir
The best way to use SyntaxNet in Windows is probably using Docker.
Install Docker
Pull the SyntaxNet container:
docker pull tensorflow/syntaxnet
Run the container:
docker run --rm -ti -p 8888:8888 tensorflow/syntaxnet
It will immediately fire up a Jupyter Notebook. Copy the link and paste it in the browser.
Open a Jupyter Notebook and navigate to this directory:
cd ../../syntaxnet/
Now run demo.sh
'Bob bought a pizza.' | syntaxnet/demo.sh