Questions tagged [fig]

[Fig] is a tool built by Orchard for creating fast, isolated development environments using Docker.

Fig is a tool built by Orchard for creating fast, isolated development environments using Docker. It allows you to define the parameters to each docker container in the deployment as well as the links between the containers. Fig is useful for bringing up the entire deployment with a single command. Fig files can also be integrated with Orchard to run remote docker containers.

Fig has now been replaced by Docker Compose, and is now deprecated.

144 questions
4
votes
1 answer

Do I always need to rebuild docker in order to install new pip packages?

I noticed when I try to use docker ( Fig mainly ) to install a new pip package, it does not actually maintain on the system. I must rebuild and install the pip package from requirements.txt I tried running fig run web pip install django and I see…
Kevin Postal
  • 349
  • 3
  • 14
4
votes
2 answers

Installing mongo client in a Docker container

I am using fig to build and run my app within various Docker containers and so-far, so good. I have a container for my app and a db container with mongo in it. But now I am trying to connect to the mongo server to seed it with a user and database…
Dave Sag
  • 13,266
  • 14
  • 86
  • 134
4
votes
1 answer

Conditional fig configuration for dev needs

we're using docker containers for both development and deplyoment since a while now and it works like a charm. Up untill now both the configuration were identical, and with fig on top the developer's life is way easier as well. As we use it more and…
4
votes
1 answer

Managing the selinux context of a file created on the host via a Docker container's volume

I ran through the fig python / django tutorial on Fedora 20 (docker 1.0.0) but it failed & tripped an AVC denial in SELinux when django-admin.py attempted to create the project files. I reviewed the policy, i can see that setting the…
CraigJPerry
  • 973
  • 1
  • 8
  • 16
3
votes
1 answer

How do I plot an image and a graph side by side?

I am trying to plot an image with its respective histogram side by side with equal proportion using plt.fig() in Python but I am not getting the desired output. Instead I get the histogram overlapping onto the image. Any idea as to why this keeps…
Brandon J
  • 73
  • 3
  • 10
3
votes
1 answer

Building Apache Mesos cluster with Docker Compose

we have an environment where docker containers are working together en they are managed by Apache mesos. Now I saw this tutorial part 1 and part 2 which is working with fig. He is recommending to use the new docker compose. I don't know fig and I…
user5558501
3
votes
2 answers

How to set/get the project name in docker-compose.yml

I'm trying to either set a docker-compose project name, or to be able to reference it within my config file. Is any of these possible? The reason I'm asking is that I'm following this tutorial so I ended up with a docker-container.yml file that…
aherve
  • 3,795
  • 6
  • 28
  • 41
3
votes
2 answers

Can I use fig to initialise a persisting database in docker?

I am trying to automate the installation and running of set of linked docker containers using fig. The configuration is composed of a container running RStudio linked to a container running MySQL, such that I can query the MySQL database from…
psychemedia
  • 5,690
  • 7
  • 52
  • 84
3
votes
3 answers

Seeding data in a Mongo db within a linked Docker container

I'm using fig to deploy my Node.js app. fig.yml web: build: . command: node app.js links: - db ports: - "1337:1337" db: image: dockerfile/mongodb Running fig run db env gives me the following environment…
Dave Sag
  • 13,266
  • 14
  • 86
  • 134
3
votes
0 answers

How to have multiple django requirements file mentioned in fig file for docker deployment across dev, staging and prod servers?

I just wrote my first fig file. It makes working with docker really awesome. I want fig to launch my local, staging, and prod containers as well. So I wrote 3 different fig files. fig-dev.yml, fig-stage.yml and fig-prod.yml. The three yml files…
whatf
  • 6,378
  • 14
  • 49
  • 78
2
votes
1 answer

Matplolib subplots what is the purpose of the fig and axs variables

Consider the following code: import matplotlib.pyplot as plt import numpy as np np.random.seed(19680801) data = np.random.randn(2, 100) fig, axs = plt.subplots(2, 2, figsize=(5, 5)) axs[0, 0].hist(data[0]) axs[1, 0].scatter(data[0],…
DJA
  • 173
  • 6
2
votes
2 answers

How do I adjust subplots from a .fig file in Matlab

I have a .fig file with 9 subplots, arranged 3 by 3. Now I want to add labels with I have written in plotlabels(i) to subplot i, on point (xcoordinates(i),0.01). I try this plotlabels = ['A','B','C','D','E','F','G','H','I']; xcoordinates =…
DM037
  • 41
  • 4
2
votes
0 answers

exported fig and eps files are large in MATLAB 2015 and 2016

I was creating and saving my plots using Matlab2014a before. Now, I updated my MATLAB version to 2015 (and 2016). When I ran my previous scripts using the new MATLAB, the figures (in both fig and eps formats) take 2-3 times more space than before.…
Ramin
  • 31
  • 4
2
votes
1 answer

Docker compose environment variables specified with env_file parameter not working inside the dockerfile

This is a snippet of my docker-compose.yml file which I'm running with docker-compose build percona_dev. percona_dev: build: docker/percona dockerfile: percona-dev env_file: docker.env I've specified environment variables in docker.env like…
Hyperfocus
  • 773
  • 1
  • 7
  • 14
2
votes
1 answer

Docker returns "json: cannot unmarshal string into Go value of type []string"

I'm new to docker. I tried to launch an image with: fig up -d --allow-insecure-ssl But I get the following error message: json: cannot unmarshal string into Go value of type []string And I can't figure out how to fix it. My fig.yml: configrepo: …
Vovochka
  • 23
  • 1
  • 3
1 2
3
9 10