Questions tagged [fig]
[Fig] is a tool built by Orchard for creating fast, isolated development environments using Docker.
131
questions
1
vote
0answers
28 views
Mercurial/Fig commands access denied
Unable to access any hg commands, getting following error:
abort: repository requires features unknown to this Mercurial: citc exp-remotefilelog-repo-req-1 fig narrowhg-experimental srcfs_manifestlog!...
1
vote
1answer
22 views
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(...
0
votes
0answers
40 views
Fig caption doesn't change when i click on other images
When i click on different images the fig caption says the same thing, i am trying to change it so when i click on different images, the fig caption changes.
I have attempted to change it and have ...
1
vote
0answers
75 views
How to increase padding (whitespace) for subplots when saving as png?
I have created a 4x2 subplot and I want to save the individual plots as separate png files. I am able to do this with the following code, however the tightbbox format is too tight and it makes it ...
0
votes
1answer
70 views
How can I check App quit in the facebook instant games?
I want to call my custom callback when player out of the game. In the docs I found only FBInstant.quit(); method, but I need an exit event. Does Facebook have this feature?
0
votes
0answers
9 views
Figcaption for random generated img
In my website, I'm playing around with the abstraction of a typeface.
Every images src is random 'letter', and I would like to have captions underneath the image source with the exact letter. However ...
-5
votes
3answers
48 views
Can someone help me rewrite this code (fig with multiple histograms) with a for loop or function?
I looked at a similar post but am still struggling with it. You don't have to write out the whole code if you don't want. But a syntactical guide would be helpful. Here is my lengthy manual ...
0
votes
1answer
240 views
Facebook Instant Gaming Matchmaking blocked on “The player is not currently eligible to match.”
I have setup the matchmaking code and actually got it working 3 times where it searched, waited, and then found a match (my other account also set to search), without any problems.
Then all of a ...
0
votes
1answer
192 views
PHP Interfaces and namespaces
When developing a package or application is there a best practice, FIG standard or community consensus on where to place class interfaces in consideration to namespacing?
For example should we:
...
2
votes
2answers
36 views
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','...
0
votes
1answer
203 views
python savefig shows error message : “TypeError: compile() expected string without null bytes”
So I am having an issue when I try to save figures in Python.
If I create a figure f, and try to save it using the line
f.savefig('Test.eps', format='eps')
It yields yields the following error ...
1
vote
0answers
162 views
using export_fig with Matlab2016b
I'm trying to use export_fig (latest version altmany-export_fig-5ad44c4) with Matlab2016b (Windows10, 64 bit, gs9.20). Settings of my graphics card are given below.
plot(cos(linspace(0, 7, 1000)));
...
0
votes
1answer
2k views
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 ...
0
votes
0answers
232 views
How to make an executable file on matlab and run on raspberry pi 3B [duplicate]
I know how to write code on matlab but I'm very beginner for raspberry pi 3.
I want to write a code on matlab and run on raspberry pi.
I wrote this code and will try on raspberry pi.
I tried this ...
2
votes
0answers
237 views
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 ...
1
vote
1answer
2k views
Unable to use variable substitution in docker-compose
I use a mac to run docker and hence I am dependent on boot2docker or docker-machine . My application running in the container needs the docker host's ip.
I saw that the variable substitution feature ...
3
votes
1answer
316 views
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 ...
2
votes
1answer
866 views
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 ...
2
votes
1answer
3k views
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 ...
0
votes
1answer
808 views
Docker-compose running multiple scripts
I'm using docker-compose and a yml file to start up a container. There are two scripts in the package.json I want to call:
"dev-start": "nodemon src/index.js",
"dev-migrate": "db-migrate --migrations-...
0
votes
1answer
750 views
matlab figure taking too long to open
I want to save a plot in .fig extension. I tried many ways but it takes too long to open (in fact it never opens sometimes after infinite wait time). I had to use Ctrl C in the command prompt to stop ...
7
votes
2answers
2k views
Docker Compose with one Terminating Container
I'm having a docker compose setup of a database container, an application container and one container which pre-loads the database with necessary data.
I want to start all of the containers together ...
0
votes
0answers
53 views
fig up fails with error “create_container() takes at least 2 arguments”
I am trying to deploy and run my django application using docker and fig and I am running into the following error.
TypeError: create_container() takes at least 2 arguments (3 given)
Here's the ...
4
votes
3answers
4k views
nginx and php-fpm in Docker
I am in the process of Dockerising my webserver/php workflow.
But because I am on Windows, I need to use a virtual machine. I chose boot2docker which is a Tiny Core Linux running in Virtualbox and ...
0
votes
2answers
418 views
Why is 'fig build' returning: AttributeError: 'WrappedSocket' object has no attribute 'recvfrom'?
My command: (I tried fig build --no-cache as well)
fig build
db uses an image, skipping
Building web...
Traceback (most recent call last):
File "/usr/local/bin/fig", line 9, in <module>
...
1
vote
1answer
465 views
Using docker-compose (formerly fig) to link a cron image
I'm runing a simple rails app in docker using docker-compose (formerly fig) like this:
docker-compose.yml
db:
image: postgres
volumes:
- pgdata:/var/lib/postgresql/data
web:
build: .
...
13
votes
4answers
18k views
docker-compose: using multiple Dockerfiles for multiple services
I'm using docker-compose and I'd like to use different Dockerfiles for different services' build steps. The docs seem to suggest to place different Dockerfiles in different directories, but I'd like ...
4
votes
1answer
3k views
Docker: Nginx & PHP Container: no such file or directory
I want to play around with docker so I created my own 2 container, nginx and php. Both container are build successfully and are published on docker hub. After that I created a fig.yml in my projects ...
9
votes
3answers
6k views
How can I send command line options to my dockerized program that I start with “docker-compose up”?
I am trying to use docker-compose up the way you can use docker run [APP_CONTAINER_NAME] [APP_OPTIONS].
7
votes
1answer
6k views
Debug django app running inside docker image, using pycharm debugger
My app is running inside a docker image (My development team never install software in their machines, only the docker images have the dependencies).
I Need to debug something using pycharm debugger, ...
1
vote
0answers
509 views
Compose: running a container that exits
I have a docker-compose.yml with postgres and a web app (ghost). I would like to run a container between postgres and ghost to initialize postgres, add a database and user permissions, and exit.
My ...
1
vote
2answers
910 views
Docker Compose: Exposing Environment Variables to linked service
I'm playing around with Docker Compose to make a container running a Rails App with a Oracle backend.
Dockerfile and docker-compose.yml
This works great until my Docker container tries to install ...
0
votes
1answer
574 views
How to Update pip in docker using fig?
It seems like the pip in docker is old:
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
File "/usr/...
9
votes
2answers
10k views
Understanding ports and links in docker compose
From my understanding of docker compose / fig, creating a link between two services/images is one main reason if you do not want to exposes ports to others.
like here db does not expose any ports and ...
1
vote
2answers
1k views
How to import a directory with modules to Python path that is a symlink to original source from a subfolder?
I am trying to run docker containers child1 and child2.
lets say we have:
UPDATED
|parent
|-----|child1/
src_folder/
__init__.py
mod1.py
|--...
1
vote
2answers
5k views
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 ...
1
vote
2answers
505 views
Docker compose environment and paths
I am trying to create local development environment using Docker Compose. I started using this example https://github.com/b00giZm/docker-compose-nodejs-examples/tree/master/03-express-gulp-watch and ...
1
vote
1answer
643 views
Docker/Boot2Docker/Fig + RabbitMQ host issue; pika.exceptions.AMQPConnectionError: [Errno -2] Name or service not known
I have just started learning RabbitMQ and Docker/Fig. I have a very simple example with 3 fig containers, one each for the Rabbit Server, Producer, and Consumer. In /etc/hosts I have set my ...
12
votes
3answers
5k views
Docker Compose circular container linking
I'm in the process of attempting to containerize our development environment with docker. This includes a mix of Google Appengine projects as well as services that are being eventually hosted in ...
2
votes
1answer
4k views
Difference between docker-compose and manual commands
What I'm trying to do
I want to run a yesod web application in one docker container, linked to a postgres database in another docker container.
What I've tried
I have the following file hierarchy:
...
-1
votes
1answer
66 views
docker/fig php environment
Can I use php container to execute scripts from other container.
If I can how can I do it or what I do wrong
Dockerfile:
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y ...
50
votes
3answers
55k views
Can I use mem_limit in docker-compose? and How?
mem_limit is supported by docker-compose? How can I test it?
I have a following docker-compose.yml
repository:
image: myregistry/my_nginx_image
mem_limit: 60m
volumes:
- /etc/localtime:/...
1
vote
1answer
1k views
Prevent docker from creating image from cache
The issue I am having is I have made some configuration changes. I have a fig.yml file that starts up all of my docker images. So i changed necessary config files however when i do ./fig up it just ...
4
votes
1answer
2k views
Docker - Volume not mounting latest files in container
The Problem
When I start a new container in Docker, I want to mount a volume so that I get the latest updates to any files on my host machine and can work with them in my container. However, what I ...
0
votes
1answer
294 views
Can't attach volume to docker with jenkins through fig
I try setup sonarqube and jenkins through one fig config. But can't attach volume to docker with jenkins through. Can somebody help?
In this way container run correctly:
docker run -p 8080:8080 -v /...
0
votes
0answers
168 views
fig.sh and mysql container losing all data after stopping services
I have a fig setup that is so inconsistent that is driving me nuts. At random times between stopping services and restarting it loses the mysql data that was created. I tried with data only containers ...
5
votes
1answer
2k views
Docker will not attach to an image
I have a fig.yml file that I am using to set up my docker containers. I run this by typing ./fig up Then it outputs the following:
Recreating docker_memcache_1...
Recreating docker_sphinx_1...
...
1
vote
1answer
161 views
tools for defining and running complex applications with docker
When you use docker on your develop life-cicle is common that you need some tools for defining and running complex applications. Actually exist somes alternatives like: fig, crane and the newest ...
15
votes
2answers
12k views
Docker + fig / compose + nginx + node.js + mysql + redis
I'm trying to set up a Node.js app on Docker multiple containers.
My app is currently on one Ubuntu DO droplet & uses:
Node.js (express 4)
mysql for the app database
redis for a key-value store
...
2
votes
1answer
709 views
How can I mount a volume from a data container while preserving the owner and permissions?
I'm using Fig and attempting to use a data volume container to share uploaded files between a Rails web server and a Resque worker running in another container. To do this the data volume container ...