So it’s about 10 minutes later and now I can access Kitura running inside a Docker container. The final screenshot shows Kitura running inside of a docker image that’s running from the commandline.
I followed the Kitura: Running Inside a Docker container tutorial.
Let me know if you have any questions.
I’m preparing for a talk for the next Hawaii iOS Developer meetup. Chae wrote a bunch of Swift code to run on a server. But none of us have created the environment to run it: A server that runs Swift code.
I followed the Kitura “Hello World” example.
That last screenshot shows Kitura running in Xcode in the console. Mission Accomplished. Next step, setting up Docker to run Kitura in a container.
Let me know if you have any questions about this write up.
During this meetup, Leo showed us how he converted his objective C project into Swift. During the presentation he covered many topics – shape views, gradients, container views, page views, and singletons.
I really appreciated the pace and clarity that Leo used to teach us during the meetup. During his presentation I also learned that he uses Sketch to mock up his designs before coding them. This made sense because he’s been saying that he’s going to start working on an Augmented Reality app but needs to design it first.
As the meetup drew to a close, O’Neil raised a question about Leo’s use of singletons to share code between his View Controllers. At the conclusion of this discussion on singletons Chae explicitly stated the following,
“Singletons are for shared data. Protocols are for shared functionality.” – Chae
I love it when, through discussion and questions, we are able to stumble onto a clear and concise explanation for architecture decisions. Looking forward to more of these discussions.
We’re taking a break for Thanksgiving on the 23rd so there will be no meetup next week. We will pick back up on November 30th where we’re going to do something crazy that we’ve been talking about for a very long time – we’re going to install Swift on a linux server with Kitura.
Please RSVP if you’re interested in attending this meetup.
There’s no stream from this meetup to post, well there is, but O’Neil kept his email address prominently displayed during the screen capture and he asked that I not post it online – all good, I just need remember to watch out for this next time.
During this meetup, O’Neil showed us about Container Views. I gotta confess that I have never used a container view, but now that I know how to hook them up, I’m itching for a reason to use one in one of the apps I’m working on.
The way a container view works is that it holds a reference to another view controller and displays that view controller’s content in the current view controller. It’s a lot like picture in picture on a TV.
When you want to change the picture in the picture, you tell the containing picture to change what it’s displaying inside itself.
At the end of the meetup, Leo, asked if he could present at the next meetup. I was ecstatic. He’s never presented before and I really wanted this meetup to be a chance for people to stretch themselves. Glad to see it’s working. Bottom line, and I’m seeing it everywhere, is that you need to raise the expectations for people to give them something to strive for.
Please RSVP if you’re interested in attending next week’s meetup. Aloha!