Docker braindump

A collection of my learnings, notes and musings on Docker.

These are currently random notes and are not much help to anybody yet. They will get tidied as I add to the page.

Docker Swarm

Docker swarm secrets

From inside a docker swarm manager node, there are two ways of creating a secret.

Using a string value:

printf <your_secret_value> | docker secret create your_secret_key -

Using a file path:

docker secret create your_secret_key ./your_secret_value.json

Docker swarm secrets are saved, encrypted, and are accessible to containers via a filepath:

/run/secrets/your_secret_key.

Posts to digest

https://www.bretfisher.com/docker-swarm-firewall-ports/

https://www.bretfisher.com/docker/

https://www.digitalocean.com/community/tutorials/how-to-set-up-laravel-nginx-and-mysql-with-docker-compose

Been learning to use Docker Swarm

Despite not yet managing to get what I have learnt implemented, I have nonetheless took on board some good concepts around docker and docker swarm

After getting half-way through a Docker Mastery series on Udemy, I decided I would like to move my WordPress website, this one, to using a 3-node swarm.

After a few days of editing and re-arranging my docker-compose.yml file (the local dev configuration file that can also be used for starting up a swarm since compose version 3.3) I have decided to just keep my website hosted on its single regular server. (Although I had already moved the database to its own dedicated server).

Despite the fact that I haven’t actually managed to move over to using a swarm (and to be honest it isn’t even needed for me) I have managed to dive into a bunch of concepts around Docker and its Swarm component and feel that I have added a few new things to me dev toolkit.

I think I will definitely be putting together a little demo in a swarm across three separate servers. But for now I will keep my website settled as it is. 😀

What I have learned – or rather reminded myself of, whilst sat in at home during this damn isolation, is that it is important to keep looking into complimentary technologies around my everyday development skill set.

The Art of Junji Ito: Twisted Visions can now be pre-ordered

Junji Ito displaying his Art book

The upcoming book, The Art of Junji Ito: Twisted Visions, is now available for pre-order at the following places:

Amazon

Book Depository

Waterstones

It will be officially released on the 14th May 2020.

From the picture above it looks like its a good size too — a little larger than A4 size I reckon. All the better to focus in on Junji Ito’s excellent craftsmanship and twisted imagery.

I’m looking forward to this one as it looks to contain many pieces of Junji Ito’s original artwork. Perhaps even some that were cut from some of his stories?

Snippet from Twisted Visions

How excited are you for this new book?

New horror manga – Genkai Chitai (Disturbing Zone) released in Japan

Junji Ito has launched a brand new horror manga called Genkai Chitai, which is Japanese for Disturbing Zone.

Junji Ito has launched a brand new horror manga called Genkai Chitai, which is Japanese for Disturbing Zone. It seems to be a part of a new horror omnibus series called “Phantom Zone”.

From what I can find out so far, it revolves around the more mundane aspects of every day life and how strange occurrences around those things happen. No doubt bringing weird and interesting horror themes into the lives of some very unsuspecting characters.

It has been released through a publication called “Line”. I have found a website called Line Manga, however, it is only available to be viewed from Japan. 🙁

I’m really looking forward to reading this one and can’t wait for an official U.K. release.

Excerpt from Junji Ito new manga, Disturbing Zone

10 Albums that greatly influenced my taste in music

No explanations, no reviews, just album covers in alphabetical order. Thanks to Rafe for the inspiration for this.

Far From Alive — Resident Evil 2 Rap

This rap song from “JT Music” is a decent rap song inspired by the Resident Evil 2 Remake game.

At first I thought that this would be a bit of a gimmick, but it has legit grown on me and is now in my regular playlist.

I am addicted to running around the world of Raccoon City in Resident Evil 2 and the recently-released Resident Evil 3 Remake.

I’m looking forward to any music that the same creator can bring from RE3’s world in the coming weeks / months.

More by The Sisters of Mercy

Absolute banger of a song by The Sisters of Mercy and Written by Jim Steinman.

Some people get by
With a little understanding
Some people get by
With a whole lot more

Lyrics by Jim Steinman

My first time hearing this song was in fact as a cover by Meat Loaf on his album Braver Than We Are. The song was actually written by Jim Steinman whose most well-known collaborator is Meat Loaf. And he has been known to reuse his songs for different artists over the years

Thoughts on The Lighthouse

The Lighthouse is a slow-burn descent into madness expertly portrayed by Robert Pattinson and Willem Dafoe.

The Lighthouse is a slow-burn descent into madness expertly portrayed by Robert Pattinson and Willem Dafoe.

They play lighthouse keepers with the task of manning the lighthouse on a rock out at sea for four weeks. But their isolation and growing annoyances of the other, soon guide them down the path of madness.

Directed by Robert Eggers, the man behind another favourite film of mine from recent years — The Witch.

I found myself completely transfixed to these two people throughout the entirety of this film. From their initial landing on the island — passing their predecessors on the walk to their new, month-long home — up to the crazy final scenes that played out like some kind of demonic version of Alfred Hitchcock.

While I’m not going to spoil anything here, what I will say is roughly what the film is about — very roughly.

Pattinson and Defoe play two lighthouse keepers. Pattinson is new to the job and quiet initially, whilst Defoe plays an almost-caricature of a typical old sea-dog with many old tales and superstitions to impart.

Their relationship is pretty intense throughout, as would be expected between boss and worker that also live together — especially in such a close and isolated proximity.

I’ve lived and worked with a boss-like figure in the past and I can tell you for one that it can get pretty tense pretty fast if you’re not careful.

They often argue and disagree, usually with Defoe coming out on top, but at times they let off steam by getting completely drunk and sing songs of old times in their drunken stupor.

The film’s climax is one that I will be thinking about for days to come, I think. It has no hard explanation, at least not that I could tell. What it does have is a heart-pumping ending that leaves itself open to interpretation — complete with metaphor and Greek mythological imagery.

Pattinson and Defoe

I’d not seen Robert Pattinson in anything before, so didn’t know what to expect. Willem Dafoe, on the other hand, I had seen a few times and so was aware of him and his idiosyncrasies as an actor.

What I found was that both of their performances were absolutely incredible. As I heard in a review after watching the film, this film displays the whole gamut of human emotions. We see both characters at their most powerful and their most vulnerable too, I would say. From the heights of joy in alcohol-fuelled excitement, to some moments of personal fantasy and depravity.

Willem Dafoe’s Shakespearean, powerful monologues were absolutely hypnotic to watch — as were his eyes whilst he delivered said speeches. Lit up like someone would be at a campfire telling ghost stories — a piercing light shining from below and up against his intense expression. He became almost scary to see but I found myself unable to look away.

I’d only heard about Robert Pattinson through knowing about his starring roles in the Twilight films, so that had coloured my perception of him if I’m honest (despite having never seen them). But all I can say is “wow”, based on his role in The Lighthouse. His descent into madness and the odd visions that he witnesses in the desolate, rocky surroundings, are pieces of cinema I wont forget in a hurry.

Superstition and suspense

The was a heavy air of suspense throughout the entire film, which for me didn’t really end until the very final shot. At times I felt like I was watching the love child film of both Alfred Hitchcock and David Lynch.

The film was presented in an old-style square frame as opposed to the typical widescreen format that we are used to nowadays. It was also shot completely in black and white. These two factors, along with the fucking incredible score by Mark Korven gave the story the added claustrophobia that the characters on screen were no-doubt facing themselves.

And as for that score, it was intense, atmospheric and downright terrifying at times. That, coupled with the films overall great sound design, made for what I can’t help but feel will be one of the greatest auditory experiences I will experience in the cinema this year.

It was just a shame that some dick in the row in front of me kept piping up to his mate with short sentences after some of the film’s big moments.

In Conclusion

What can I say other than this is a film that will treat all of your cinema-viewing senses to a real treat. The performances are incredible; the story itself is left up to you to interpret; and the atmosphere is one of constant isolation and sustained dread.

I loved it from beginning to end and found myself enjoying the emotional journey that these two men were going on. The more I sit and think about it now afterwards, the more my mind is starting to think about the possible symbolism throughout the film. And the more I am starting to form my own interpretations of what I have seen tonight.

Maybe I’ll write these interpretations into a separate post once I have some kind of coherent way of putting those thoughts together.

If you enjoyed The Witch, to which this is a sort of spiritual companion, or are simply open to something very different from your regular cinema experience, then I can’t recommend The Lighthouse enough. If you can watch it for the first time at a cinema then you definitely should.

February 2020 round-up

Here is the first monthly round-up I’ve done. Just some songs, albums, films and games that I’ve enjoyed in February 2020.

Here are some things I’ve been enjoying in February 2020.

Songs

Albums

Films

Games

Sign of the Times (Prince Cover) by Muse

Muse’s incredible cover of Prince’s classic song Sign of the Times

A sister killed her baby ’cause she couldn’t afford to feed it
And yet we’re sending people to the moon
In September, my cousin tried reefer for the very first time
Now he’s doing horse, it’s June, unh

Lyrics from Sign of the Times

Possibly one of my favourite covers of any song I’ve heard. This is how covers should be done.

I remember hearing this for the first time in my first web development job. I was working for a small local company, whose office was the upstairs level of a converted barn.

Usually the radio — permanently fixed on Radio One — soon became tiresome for me as the same songs seemed to be played at the same time every damn day.

But one magical day I happened to hear the Live Lounge wear I heard Matt Belamy’s signature guitar sound riffing to a tune I recognised but could not name.

When I finally worked it out it hit me like a freight train.

This song is fucking incredible.

Thoughts on the film Joker

Joaquin Phoenix is probably my favourite representative of the character of Joker that I’ve seen on screen.

–is it just me, or is it getting crazier out there?

Arthur Fleck speaking with his Social Worker

Joker is a phenomenal film, released in 2019, that explores a possible origin story for Batman’s famous arch-nemesis.

I can’t believe that I was sat right where I am now as I write this, considering not going to see Joker for my second time at the cinema. This film is absolutely stunning for so many reasons — some of wish I will try and put over to you here.

Please note however, that this isn’t a typical “comic book film” — it’s so much more than that.

I should also say that there are some spoilers ahead.

A Stunning Performance

Joaquin Phoenix is probably my favourite representative of the character of Joker that I’ve seen on screen. He isn’t playing a huge comic book, larger-than-life character. Instead he is playing a grounded human being, living in almost-poverty, dealing with a whole manner of uphill battles.

At front and centre of his performance was the mental health issues that Arthur Fleck (later to become Joker) is dealing with throughout the film and his life. Joaquin’s portrayal of Fleck with these issues was incredible – I couldn’t help but imagine the amount of energy that this role must have taken day to day to get to what we see on screen. Nothing seems to be held back – even the look of his malnourished body from his weight loss for the role stands as a testament to his dedication here.

What I found the most profound though, was the way that Joaquin managed to blend comedy and tragedy into the same performance, so naturally. I remember a key scene where his boss at the clown hire company calls him to see him, essentially blaming him for getting beat up by a gang of kids. Fleck forces himself to ‘put on a happy face’, which for a second is passable as such. But as the camera moves in closer, I could see and feel the anguish and anger building up in him. That one moment made him worthy of his 2020 oscar win for best actor, in my opinion.

The Music is perfect

I discovered a new instrument when hearing the soundtrack to Joker: the Halldorophone. The instrument is similar to a cello, I think. It is so haunting, so intense and so desolate-sounding, that it perfectly represented the mental isolation that Fleck experiences on the busy streets of Gotham City. The film’s composer, Hildur Guðnadóttir, has created a sound that managed to cut down to Fleck’s core and expose it to the audience.

When I think about the score, I go straight to a bathroom scene where Fleck slow dances by himself having just killed the three suits on the subway. The way that the instrument filled the cinema as Fleck seemed to be slipping into something a lot more comfortable, mentally speaking, created a single moment in cinema that I will never forget.

Arthur begins to fit into his emerging persona

Along with Hildur Guðnadóttir’s incredible score, are the use of some classic songs at key moments in Fleck’s transformation. Frank Sinatra’s “That’s life” seemed to perfectly capture an acceptance that life can beat you down at times. But it’s done with it’s calm, almost relaxing, accompaniment that it fit so well into the Joker’s embracing and enjoyment of using his experiences to fuel what he is to become.

I said, that’s life (that’s life), and as funny as it may seem
Some people get their kicks
Stompin’ on a dream
But I don’t let it, let it get me down
‘Cause this fine old world it keeps spinnin’ around

That’s Life – Frank Sinatra

I loved the use of Rock ‘N’ Roll (Part 2) too. After living with Arthur and experiencing his hardships first hand up to this point, this song was almost like a release of some of the tension. In fact that seemed to be exactly what Arthur was experiencing too as he danced along to it down them well-trodden steps in one of the film’s most iconic scenes. But even from that up-beat foot-tapping song, Hildur’s excellent score blends back in and takes over to remind us that despite this ‘happy face’, at his core is still that desolate and broken man.

An unlikely hero

Joker is probably one of the most unlikely heroes of all of the villains I’ve come across in films. Up until now that is. But of course, that is completely dependant on your perspective. In all of the Batman films, Thomas Wayne was this beacon of hope for the city who, after his death, became a catalyst for his son Bruce to pursue his own destiny as the Batman. But when you come at the story from the side of the “villain” (quotes intended), it makes things not quite so black and white.

Arthur Fleck comes from the impoverished side of gotham, where the people are pretty much forgotten about and frowned upon by the rich society. There is a moment when Thomas Wayne appears on television, to the excitement of Fleck’s mother, to be interviewed about the three killings on the subway.

From what we saw on that train car, we know that those three men were complete scumbags – harassing an innocent woman and then beating on Arthur. Yes, Arthur’s reaction was extreme. But after a life of being beaten on by his peers and society around him, and with the only means of self-defence to hand, is it really that surprising that he reacted how he did?

But then to have Thomas Wayne, the poster child for success and wealth in the city, give the following statement, it puts him in a completely opposing light to how I’d seen him previously: “And until that jealousy ends, those of us who’ve made a good life for ourselves will always look at those who haven’t as nothing but clowns.”.

Arthur getting ready for the Murray Franklin show

And until that jealousy ends, those of us who’ve made a good life for ourselves will always look at those who haven’t as nothing but clowns.

Thomas Wayne, interviewed on TV

I think it was inevitable that there was going to be some civil unrest on the city streets. But it just so happened that Arthur was at the right place at the right time to kick start the revolution and lead it into a new era for Gotham.

Births and Deaths

There was a moment at the end that caused my mouth to drop with excitement and awe. It was just at the height of all of the rioting, as Fleck (almost fully Joker) is being broken out of the police car following his television appearance. We see Thomas and Martha Wayne leaving the theatre with their son Bruce in tow. I thought – hang on, this seems familiar.

As they run down a side alley to escape the escalating violence they are approached by one of the extreme protesters in a clown mask. This immediately sent me back to being about ten years old again seeing Tim Burton’s batman – “You ever dance with the Devil in the pale moonlight?”. The attacker in Joker didn’t say this, as it wasn’t the same character as in Batman (In Batman it is a criminal called Jack Napier who becomes the Joker). But it was no less powerful for me to see this scene play out at this film’s climax.

But the most powerful moment for me was the awakening of Joker on the bonnet of the police car — after having been broken out, and the deaths of both of Bruce Wayne’s parents. Although the metaphor is pretty obvious I just wanted to note it down: It is the perfect representation of the births of both Joker and Batman happening at the same point in time.

Joker is raised up and revered as the leader of a crusade for the beaten and down-trodden in society. At the same time the seeds of what Bruce is to become are planted at the very moment that his parents are taken away from him.

In Conclusion

I have only seen a couple of different versions of the Joker, from the New 52 DC comics to the classic Jack Nicholson perforce in Tim Burton’s Batman. And from Heath Ledger’s iconic performance back to Batman: The Animated Series. But I have to say that so far, I think that Joaquin Phoenix’s portrayal has easily become my favourite — of the ones I’ve seen on screen, anyway.

His version is so grounded in reality, so much so that this didn’t even feel like a typical ‘Comic Book Film’ for one second as I watched it. This is a psychological thriller through and through – and a damn excellent one too.

Joker does have it’s funny moments, but they are sometimes hard to spot — depending on your sense of humour. But if you are inclined towards darker comedy, there are some pretty funny moments in here.

Related Links

Composer Hildur Guðnadóttir’s website.

‘Joker’ Originally Had A Very Different Bathroom Scene – from SlashFIlm

Every Song On Joker’s Soundtrack. – from Screen Rant