<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Joseph</title>
    <description>The latest articles on DEV Community by Joseph (@joseph70144911).</description>
    <link>https://dev.to/joseph70144911</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F580851%2Fab5a6805-95e9-4b04-a5be-54dee0374815.png</url>
      <title>DEV Community: Joseph</title>
      <link>https://dev.to/joseph70144911</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joseph70144911"/>
    <language>en</language>
    <item>
      <title>CS Traveloka 0897-7777-764</title>
      <dc:creator>Joseph</dc:creator>
      <pubDate>Thu, 20 Feb 2025 16:24:14 +0000</pubDate>
      <link>https://dev.to/joseph70144911/cs-traveloka-0897-7777-764-b63</link>
      <guid>https://dev.to/joseph70144911/cs-traveloka-0897-7777-764-b63</guid>
      <description>&lt;p&gt;Nomor Resmi Call Center Traveloka 0897-7777-764.&lt;/p&gt;

&lt;p&gt;Untuk mendapatkan informasi lebih lanjut mengenai kendala pada pesanan, pelanggan dapat menghubungi &lt;a href="https://analisanggaran.id/forum/show/cs-traveloka-0897-7777-764-2410" rel="noopener noreferrer"&gt;CS Traveloka 0897-7777-764&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;traveloka juga menyarankan kepada pelanggan untuk menghubungi &lt;a href="https://wa.me/+628977777764" rel="noopener noreferrer"&gt;cs traveloka 0897-7777-764&lt;/a&gt; kanal resmi &lt;a href="//www.traveloka.com"&gt;www.traveloka.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/tamojay/nomor-customer-service-traveloka-3pmc"&gt;Nomor Customer Service Traveloka&lt;/a&gt;&lt;/p&gt;

</description>
      <category>data</category>
      <category>web</category>
      <category>bitcoin</category>
      <category>cloudcomputing</category>
    </item>
    <item>
      <title>😁Getting started with Docker and 🔥Flask </title>
      <dc:creator>Joseph</dc:creator>
      <pubDate>Sun, 12 Sep 2021 21:51:40 +0000</pubDate>
      <link>https://dev.to/joseph70144911/getting-started-with-docker-and-flask-1la9</link>
      <guid>https://dev.to/joseph70144911/getting-started-with-docker-and-flask-1la9</guid>
      <description>&lt;p&gt;Getting Started with Docker and Flask&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;a href="//www.docker.com"&gt;Docker&lt;/a&gt; 🎯 and Flask are great combinations for creating web applications and API's.&lt;br&gt;
Let's briefly look into how you, yes you over there an absolute beginner can get started with Docker and Flask.&lt;br&gt;
Without wasting your time let me make you know what Docker and Flask really mean then we dive deeper into how we can create them.&lt;br&gt;
Docker is a platform for building, running and shipping applications&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flask.palletsprojects.com/en/2.0.x/"&gt;Flask&lt;/a&gt; is a Python web micro-framework built with a small core and easy-to-extend philosophy. Flask framework is flexible , lightweight and highly structured&lt;/p&gt;
&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Programming fundamentals&lt;br&gt;
Basic familiarity with Git 💩( clone, push, pull and e.tc).Just the basics nothing more 🌔&lt;/p&gt;
&lt;h2&gt;
  
  
  Setting up Your Computer 💻
&lt;/h2&gt;

&lt;p&gt;The getting started guide on Docker has detailed instructions for setting up Docker on &lt;a href="https://docs.docker.com/desktop/mac/install/"&gt;Mac&lt;/a&gt;, &lt;a href="https://docs.docker.com/engine/install/ubuntu/"&gt;Linux&lt;/a&gt; and &lt;a href="https://docs.docker.com/desktop/windows/install/"&gt;Windows&lt;/a&gt;.&lt;br&gt;
In my case I use windows 10 as my OS .&lt;br&gt;
Once you are done installing Docker, test your Docker installation by running the following:&lt;/p&gt;

&lt;p&gt;Open up a terminal window and create a folder for your project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C:\Users\odhia&amp;gt;mkdir my-intro
C:\Users\odhia&amp;gt;cd my-intro
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I open it using visual studio code as my editor via the below command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C:\Users\odhia\my-intro&amp;gt;code .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then inside the editor I created three files(my_app.py, Dockerfile and requirements)&lt;/p&gt;

&lt;p&gt;see my repo here &lt;a href=""&gt;Repository&lt;/a&gt;&lt;br&gt;
Inside my_app.py we have&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
    return 'Flask with docker!'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;inside Dockerfile write the below code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FFROM python:3.9-slim-buster
WORKDIR /Users/odhia/my_app
ENV MY_INTRO=my_app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_ENV=development 
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY . .
CMD ["flask", "run"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;in requirement.txt type&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flask
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;open your terminal and type&lt;br&gt;
&lt;code&gt;&lt;br&gt;
C:\Users\odhia\my-intro&amp;gt; docker image build -t my-intro .&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
this will take some time , wait till it finishes&lt;br&gt;
Then run the image by typing the below command in your terminal&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker run -d -p 79:5000 my-intro
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To show running container, type&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will see something like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CONTAINER ID   IMAGE                      COMMAND                  CREATED          STATUS          PORTS                               NAMES
0580c6995b4b   docker101tutorial:latest   "/docker-entrypoint.…"   27 minutes ago   Up 27 minutes   80/tcp                              angry_goodall
13f7ca8a0a5d   docker101tutorial          "/docker-entrypoint.…"   33 minutes ago   Up 33 minutes   0.0.0.0:80-&amp;gt;80/tcp, :::80-&amp;gt;80/tcp   docker-tutorial
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To build the image called "my-intro_webservices" &lt;br&gt;
run the command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker-compose up -d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then type&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker images
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;an output like the one below will be seen&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;REPOSITORY          TAG       IMAGE ID       CREATED             SIZE
&amp;lt;none&amp;gt;              &amp;lt;none&amp;gt;    cea83b5079af   52 minutes ago      125MB
my-intro            latest    4693d6dfab69   52 minutes ago      125MB
docker101tutorial   latest    df160a26968e   About an hour ago   28.3MB
alpine/git          latest    b8f176fa3f0d   3 months ago        25.1MB
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above result are the list of our images&lt;/p&gt;

&lt;p&gt;If in any case we wanna do deletion we can use the command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker rmi df1 -f
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;NOTE: &lt;strong&gt;df1&lt;/strong&gt; is first three letters of my image ID&lt;/p&gt;

</description>
      <category>docker</category>
    </item>
  </channel>
</rss>
