Running WordPress and MySql in Docker

Notes

  • A Docker image is a lightweight, stand-alone, executable package of a piece of software that includes everything needed to run it: code, runtime, system tools, system libraries, settings. Available for both #Linux and #Windows based apps, containerized software will always run the same, regardless of the environment. #Containers isolate software from its surroundings, for example differences between development and staging environments and help reduce conflicts between teams running different software on the same infrastructure.
  • A container is a runtime instance of an image—what the image becomes in memory when actually executed. It runs completely isolated from the host environment by default, only accessing host files and ports if configured to do so. #Container are stateless and should be considered read only! (you can go inside the container change data, but at container creation your changes are lost)
  • Both MYSQL (Data, users) and WordPress (plugins, themes, uploads) are stateful, so we have to use #Docker volume to persist data across container restart.
  • expose: 3306 will let you connect later with MySQLWorbench to the port from outside of the container. it is optional.
  • depends_on tell #wordpress to wait till mysql db container is up
  • The always restart policy tells #Docker to restart the container under every circumstance. What’s great about the always restart policy is that even if our #Docker host was to crash on boot, the Docker service will restart our container.

We will be using the official #Wordpress image from Docker HUB But first let’s create a file uploads.ini to avoid issues later on while uploading plugins in wordpress.

file_uploads = On 
memory_limit = 256M 
upload_max_filesize = 256M 
post_max_size = 300M 
max_execution_time = 600 

Create a new file docker-compose.yml, adapt values to your liking, especially all passwords and username. Note that #MYSQL and #Worpress data are persisted OUTSIDE of container.

version: '2' 
services: 
 wordpress: 
	depends_on: 
	 - db 
	image: wordpress:latest 
	volumes: 
	 - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini 
	 - ./file-wordpress:/var/www/html 
	ports: 
	 - 80:80 
	 - 443:443 
	restart: always 
	environment: 
	  WORDPRESS_DB_HOST: db 
	  WORDPRESS_DB_USER: wordpress 
	  WORDPRESS_DB_PASSWORD: wordpress 
	  WORDPRESS_TABLE_PREFIX: abcd 
 db: 
	image: mysql:5.7 
	volumes: 
	 - ./db-wordpress:/var/lib/mysql 
	restart: always 
	expose: 
	 - "3306" 
	environment: 
	  MYSQL_ROOT_PASSWORD: wordpress 
	  MYSQL_DATABASE: wordpress 
	  MYSQL_USER: wordpress 
	  MYSQL_PASSWORD: wordpress

The docker-compose up command aggregates the output of each container. It Builds, (re)creates, starts, and attaches to containers for a service. When the command exits, all containers are stopped. Running docker-compose up -d starts the containers in the background and leaves them running. To start WordPress in the background

docker-compose up -d

To find the name of the container

docker ps -a

or

docker-compose ps

To read the logs file

docker logs wordpress docker logs db

To go inside the container (remember all changes in there are lost at container restart)

docker exec -it wordpress bash

To delete all volume

docker-compose  rm -v

The BlackDog, one of the smallest Linux servers

BlackDog is a fully self-contained computer with a built-in biometric reader and a host of other powerful features. Unlike any other computing device, BlackDog is completely powered off of the USB port of your host computer no external power adapter required!

  • Dimensions: H: .50â€Â? W: 1.75â€Â? L: 3.5â€Â?
  • Weight: 1.6 ounces
  • 400Mhz PowerPC Processor
  • 64MB RAM
  • 256MB (199$) or 512MB (239$) Flash Memory
  • USB 2.0
  • Biometric Scanner
  • MMC Expansion Slot

PSP to TV Adapter

2 accessories to play PSP game or watch picture on your television

1. without any modifications
This new peripheral takes a completely different approach and clips on top of your PSP screen, with two screws to fit at the back of the handheld (in these two holes you can see on the top of the UMD drive). Some sort of pyramid grows from the base, with a precision lens and mirror system at the top, capturing the image and light, in a similar way a scanner or camera would. It then converts it into a video signal that is sent through video leads going from the adapter to your TV set. The retail price is expected to be slightly over 100 US$ (mid november)
2. with modifications
This one requires you to open and modify your PSP console. Availablenow for 119$

 

 

Worth reading while waiting on Antispam components bundle for Joomla/Mambo

A captcha (an acronym for "completely automated public Turing test to tell computers and humans apart") is a type of challenge-response test used in computing to determine whether or not the user is human. The term was coined in 2000 by Luis von Ahn, Manuel Blum, and Nicholas J. Hopper of Carnegie Mellon University, and John Langford of IBM. A common type of captcha requires that the user type the letters of a distorted and/or obscured sequence of letters or digits that appears on the screen. Because the test is administered by a computer, in contrast to the standard Turing test that is administered by a human, a captcha is sometimes described as a reverse Turing test. From Wikipedia read more here and here

Hashcash is a proof-of-work system designed to limit email spam and denial of service attacks. It was proposed in March 1997 by Adam Back From Wikipedia read more here and here

My Raptor 30 v1 (sold)

My first helicopter :

This is the last view of my thunder tiger raptor, I regret it each time I see another helicopter, but I do the right thing : after fighting 2 months with the woof (without poof) and without flying, changing for 250 Euro of part (metal wash out, metal swash plate, flat damper, blade, servo,blade grip etc). I sell it… The person cured the woof and poof because he glue the rotor hub on the main mast.

In the very beginning of 2001, I was the first person who recommend the raptor, but with the current problem, I can not ! keep your hand away from this bird (or learn to fly with it and sell it if he start to Wah Wah or woof and poof). The risk is to kill yourself, crash the helicopter, or injured someone else in during loosing the control. Note that I would buy immediately 2 raptor when ace (the distributor) find the solution, but as today 21.12.2001, there is at least 20 solutions on internet and none cured the problem completely. Worse is the fact than some are really different each other. SORRY BUT BYE BYE RAPTOR

PS
Raptor, I regret you each time I clean the motor from my Robbe Moskito xxl (really a pain to view the motor)

[ngg src=”galleries” ids=”5″ display=”basic_thumbnail” thumbnail_crop=”0″ show_slideshow_link=”1″]

old message I’ve posted on the newsgroup:

Hello,

So now many french flyer like me have the same problem, the woof and poof (tracking on only one side of the rotor, more than five centimeter, appear not always, only under low load around 0°) can even let the main blade hit the tail boom.

I do the following on my raptor :

– I change the wash out for a metal one (ace)
– I change the swash plate for a metal one (not from ace, quick uk)
– I change the main blade for fiber one (quick uk)
-> woof and poof still remained

I decide to add some weight in the canopy : install dual bat + another pack of battery (it may change Eigen frequency of the whole system)
-> woof and poof still remained

Another flyer add a shim to remove the slope as described on many site
-> woof and poof still remained but isn’t anymore so enormous….not an 100% solution

So i decide to change the main rotor grip + flat damper (not so expensive in fact)
-> woof and poof still remained

Delta 0
-> less woof and poof but still present….

One friend cure it: glue the rotor head with CA to the main mast !!!!!!

But if it cured the problem, maybe all raptor flyer should call Ace and ask for A FREE UPGRADE SOLUTION (my raptor has less than a year)
if not I will put a HEIM rotor head system instead of the ace.

best regards
cedric

Economy 1

Since I have a lot of raptor 30 bin parts, I will replace all parts on the caliber with them…- Replace paddles with raptor 30 paddles, done on 25.06.2002 -> this suppress completely flutter ! 1 day of hard 3D without any problem
– Add longer tail boom suppport,
– After a crash I will certainly replace landing skids with the raptor 30 landing skids since they are more flexible (loose crash ;-)).
– The phillips head screws used are JIS (Japanese Industrial Standard). There are no substitutes. Regular metric drivers will not work. So it is a good idea to replace them all with allen screw before stripping original head screws (they are made of a very cheap metal)
– Add an air filter, the engine sucks air from the airflow coming from the fan, this reduce possibility of dust entering in the carb.
– You can use raptor 30 main rotor blade.
– If you use the kyosho canopy, do not apply the decals (it is really a pain to apply them), but sligthly sand the screen and paint it instead.

90 deg. CCPM

90 deg. CCPM by CK_

When in MMS mode, move the link from the blue ball to the red ball. Do this on both side of the swashplate.
All credit to CK_

As for the 90 deg. CCPM, here’s why I did it. I started with the stock 120 deg. CCPM with 3 9202s. If I banged the cyclic around quickly there was a lot of collective interaction. Try it for yourself. Wiggle the cyclic and watch the antirotation pin and jump up and down 1/8″. The interaction happens because the servos are slow and the front swash input has to move twice as fast as the two in the rear for a fore/aft cyclic movement because the front ball is twice the distance from the center as the rear balls. If you move the cyclic faster than the servos can move then all three servos will move the same speed (the max speed of the servo) and collective interaction will happen because the front swash input is not moving at twice the speed of the other two. Curtis’ 140 deg. or whatever it is on the Vigor CS puts the front ball exactly the same fore/aft distance from the center as the two rear balls. This means that all three servos move the same speed for a fore/aft cyclic input. No interaction.

If you use 90 deg. then fore/aft cyclic only moves one servo. There can never be interaction if only one servo is moving. Lateral cyclic will move two servos at equal and opposite speeds. No chance for servos to “run out of speed” like with 120 deg. I still get a little bit of interaction but it’s nothing like I had with the stock setup.

Like I said before, I still don’t know why 120 deg. is pretty much the standard and 90 deg. is rarely used when 120 deg. has much more collective interaction. Anyone got any ideas?

Great response by Dr.Ben

Your info about the 140 degree CCPM is entirely valid. One drawback of having the single ele input up from is that the swash is less stable. 120/140 d. CCPM surrounds the entire swash with support. There is also a control power component here. One reason the big gun CCPM models such as the Fury and Vigor CS can pull such abrupt maneuvers is the combined input of the servos – two for any roll command, THREE for pitch command, and three for a collective command. 90 degree CCPM takes two servos out of the power equation on the pitch axis. I realize the control power issue is of less consequence in a 30 sized bird, but you asked why manufacturers don’t employ 90 CCPM more commonly.

Much of the interaction you saw is a direct result of the somewhat slow analog 9202’s (still a hell of a good servo) and not the 120 d. CCPM per se. If you go to a upper or lower collective command and input a hard over roll input, you will note a pretty good collective interaction because the servo arm on one of the two roll servos is approaching centerline and thus moving its pushrod further, while the other servo arm is retreating from centerline and moving the pushrod less. This differential phenomena is present in all CCPM models with rotary servos and is somewhat minimized by using servo wheels large enough to avoid movement a large number of degrees off centerline. A linear output servo is the only way to avoid the problem completely; we ain’t there, yet <g>. The Caliber 30 system might work a bit better better if the bellcranks were designed to create less swash travel per unit of servo movement (meaning equal ball input points on both arms of the bellcrank), and then larger servo wheels were used to get the collective/cyclic range needed (less differential effect).

Ben Minor