Questions tagged [data-containers]

23 questions
24
votes
3 answers

Docker Compose - How to store database data?

I am new to docker and developing a project using docker compose. From the documentation I have learned that I should be using data only containers to keep data persistant but I am unable to do so using docker-compose. Whenever I do docker-compose…
Salman Ghauri
  • 483
  • 1
  • 4
  • 13
13
votes
8 answers

C#: What style of data containers are preferred in general?

When creating a simple data container class, what should it be? Class or struct? Mutable or immutable? With or without non-empty constructor? Examples of the above: struct MutableStruct { public string Text { get; set; } public int Number…
Svish
  • 138,188
  • 158
  • 423
  • 589
10
votes
3 answers

Bootstrap tooltip data-container=body and limit scope of css on .tooltip-inner

I am using bootstrap 3.3 tooltips and had an issue with the tooltips being cropped/hidden. I solved this by setting data-container="body".
5
votes
3 answers

Docker - How to access a volume not attached to a container?

I have (had) a data container which has a volume used by other containers (--volumes-from). The data container has accidentally been removed. Thankfully the volume was not removed. Is there any way I can re run the data container and point it BACK…
Matt Bryson
  • 1,652
  • 1
  • 18
  • 35
2
votes
1 answer

How to make docker container be notified when volume from another container was updated?

I have docker container with Nginx and data container with static (JS,CSS) files only. At app start Nginx mounts volume from data container using volume_from. The problem appears when I want to update my static files because Nginx container can't…
2
votes
0 answers

How to share versioned data within a pod

We are currently serving around 140 webapps created by a bunch of different web agencies. The setup is the usual LEMP stack. A 1.2 k8s cluster has been installed to migrate them as micro-services. The problem we are facing is about serving static…
dynek
  • 21
  • 2
2
votes
0 answers

Fig apparently not using volume_from on mysql service

I'm trying to setup a very simple setup of a mysql database using a data-container as repository using Fig.sh and Docker. The code below is self-explanatory: web: build: . command: php -S 0.0.0.0:8000 -t /code ports: - "8000:8000" …
William Lepinski
  • 810
  • 6
  • 14
2
votes
3 answers

Alternative ways to load / save data - without serialization?

Ok. I know how to use Serialization and such, but since that only applies to Objects that's been marked with Serialization attribute - how can I for example load data and use it in an application without using Serialization? Say a data file. Or,…
Deukalion
  • 2,186
  • 7
  • 29
  • 47
1
vote
1 answer

ADA - Records in a hashmap. Problems with printing the hash map

I'm new to programming and this is my first attempt at a data container with records. I'm having difficulty with printing the hashmap between line 65-70. I'm guessing I need to break down the record and print each of its attributes individually but…
Ben
  • 61
  • 3
1
vote
1 answer

Data Orientated Design; how do I optimize a data structure in c++ for performance?

I would like to have a class of varying number n of objects which are easily iterated over as a group, with each object member having a large list (20+) of individually modified variables influencing class methods. Before I started learning OOP, I…
Daggaz
  • 11
  • 1
1
vote
3 answers

Docker: Push data container onto Docker Hub

I am really new at this Docker stuff, and even newer at Docker Hub, so please bear with me … I have created a data container to use with my docker image (specifically, a data container to store data for a running mssql-server-lnux image). I know…
Manngo
  • 8,349
  • 6
  • 50
  • 74
1
vote
1 answer

docker volume container strategy

Let's say you are trying to dockerise a database (couchdb for example). Then there are at least two assets you consider volumes for: database files log files Let's further say you want to keep the db-files private but want to expose the log-files…
vkoster
  • 31
  • 8
1
vote
2 answers

TFS workspace with Jenkins Docker container

So I have a Jenkins master container ali_jenkins_m setup which I spin up using a data volume container ali_jenkins_data for storing the Jenkins data. docker run -p 8080:8080 -p 50000:50000 --name ali_jenknins_master --volumes-from ali_jenkins_data…
Ali Bhagat
  • 347
  • 1
  • 3
  • 14
0
votes
1 answer

Why should I call Dispose on DataContainer or DataContext while it seems it doesn't differ?

I create a simple test program to find out the memory and speed difference between calling Dispose vs not calling it for DataContainer object. Here my test program: static void Main(string[] args) { Stopwatch stopwatch = new Stopwatch(); …
0
votes
0 answers

Custom validation logic for date controller on a container

We use data containers which allow for building custom ui and the associated controls such as date pickers. Here is the main schema for one of our containers, { "key":"panel", "type":"panel", "input":false, "label":"Custom Control", …
Bisoux
  • 432
  • 3
  • 11
1
2