{"id":14752,"date":"2016-09-27T12:15:51","date_gmt":"2016-09-27T09:15:51","guid":{"rendered":"https:\/\/www.webcodegeeks.com\/?p=14752"},"modified":"2016-09-24T23:27:27","modified_gmt":"2016-09-24T20:27:27","slug":"running-phoenix-tests-using-docker","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/","title":{"rendered":"Running Your Phoenix Tests Using Docker"},"content":{"rendered":"<p>One of the many benefits of using Docker is that it can make testing your applications much easier. Want to test out your Phoenix app on the newest version of Elixir? Easy \u2014 just change one line in the Dockerfile.<\/p>\n<p>In this post, we\u2019ll walk through setting up a <a href=\"http:\/\/www.phoenixframework.org\/\">Phoenix<\/a> project with Docker, which will allow us to run our application\u2019s tests using Docker. We\u2019ll be working with just a basic, scaffolded Phoenix app, as the specifics of the app are not important for the purposes of this post. Extrapolating out to a real-world app should be straightforward, so we\u2019ll be focusing on the Docker side of things.<\/p>\n<p>This post assumes a basic familiarity with <a href=\"https:\/\/blog.codeship.com\/comparing-rails-and-phoenix-part-i\/\">Phoenix<\/a> as well as <a href=\"https:\/\/blog.codeship.com\/why-docker\/\">Docker<\/a>. You will need to have Docker running on your development machine, but that\u2019s it. Everything else will be taken care of within the context of Docker.<\/p>\n<h2>Dockerizing Phoenix<\/h2>\n<p>We\u2019ll start from just an empty directory here. Go ahead and create the directory <code>mkdir phoenix_docker &amp;&amp; cd phoenix_docker<\/code>.<\/p>\n<p>Now add a basic <code>Dockerfile<\/code> with just the following contents:<\/p>\n<pre class=\"brush:php\">FROM elixir:onbuild\r\n\r\nMAINTAINER Your Name &lt;your.email@example.com&gt;\r\n\r\nRUN mix local.hex --force\r\n\r\nRUN mix archive.install --force https:\/\/github.com\/phoenixframework\/archives\/raw\/master\/phoenix_new.ez\r\n\r\nWORKDIR \/app<\/pre>\n<p>This Dockerfile builds off of the <a href=\"https:\/\/hub.docker.com\/_\/elixir\/\">official Elixir base image<\/a>. We then install the Hex package manager and Phoenix archive locally before setting the working directory to <code>\/app<\/code>.<\/p>\n<p>Next let\u2019s go ahead and set up <a href=\"https:\/\/blog.codeship.com\/orchestrate-containers-for-development-with-docker-compose\/\">Docker Compose<\/a>. Add a <code>docker-compose.yml<\/code> file with the following contents:<\/p>\n<pre class=\"brush:php\">web:\r\n  build: .\r\n  ports:\r\n    - \"4000:4000\"\r\n  command: mix phoenix.server\r\n  environment:\r\n    - MIX_ENV=dev\r\n    - PORT=4000\r\n  volumes:\r\n    - .:\/app<\/pre>\n<p>This will build from the our Dockerfile and run the command <code>mix phoenix.server<\/code> by default. However, we can also specify a different command to run in the container. This is exactly what we will do in order to bootstrap our Phoenix app:<\/p>\n<p><code>docker-compose run web mix phoenix.new . --app phoenix_docker --no-brunch<\/code><\/p>\n<p>This will create a new Phoenix application in the working directory. Furthermore, since we specified a volume in the <code>docker-compose.yml<\/code>, this generated app will persist to our local <code>phoenix_docker<\/code> directory. That is, we were able to generate our Phoenix application without needing to download and install anything other than Docker on our local machine. This is a great start, but in order to actually run the application, we are going to need a database.<\/p>\n<h2>Adding Postgres<\/h2>\n<p>Phoenix works with PostgreSQL by default, so let\u2019s get that up and running. Docker Compose makes it super easy to set up Postgres and link our application to it.<\/p>\n<p>First, update the <code>docker-compose.yml<\/code> to include the db service:<\/p>\n<pre class=\"brush:php\">web:\r\n  build: .\r\n  ports:\r\n    - \"4000:4000\"\r\n  command: mix phoenix.server\r\n  environment:\r\n    - MIX_ENV=dev\r\n    - PORT=4000\r\n  volumes:\r\n    - .:\/app\r\n  links:\r\n    - db\r\ndb:\r\n  image: postgres\r\n  environment:\r\n    - POSTGRES_USER=postgres\r\n    - POSTGRES_PASSWORD=postgres\r\n    - POSTGRES_HOST=db<\/pre>\n<p>Notice that we added the db link in our <code>web<\/code> service. This will make Postgres available to our app and will also expose the <code>POSTGRES_*<\/code> environment variables within our <code>web<\/code> service. Therefore, we can now update our dev Phoenix database configuration in <code>config\/dev.exs<\/code> with the following:<\/p>\n<pre class=\"brush:php\">config :phoenix_docker, PhoenixDocker.Repo,\r\n  adapter: Ecto.Adapters.Postgres,\r\n  username: System.get_env(\"DB_ENV_POSTGRES_USER\"),\r\n  password: System.get_env(\"DB_ENV_POSTGRES_PASSWORD\"),\r\n  hostname: System.get_env(\"DB_ENV_POSTGRES_HOST\"),\r\n  database: \"phoenix_docker_dev\",\r\n  pool_size: 10<\/pre>\n<p>Now we can start up the <code>web<\/code> service:<\/p>\n<p><code>docker-compose up -d web<\/code><\/p>\n<p>install dependencies:<\/p>\n<p><code>docker-compose run web mix deps.get<\/code><\/p>\n<p>compile:<\/p>\n<p><code>docker-compose run web mix compile<\/code><\/p>\n<p>create the database:<\/p>\n<p><code>docker-compose run web mix ecto.create<\/code><\/p>\n<p>and migrate the database:<\/p>\n<p><code>docker-compose run web mix ecto.migrate<\/code><\/p>\n<p>Finally, let\u2019s go ahead restart the <code>web<\/code> service:<\/p>\n<p><code>docker-compose restart web<\/code><\/p>\n<p>You should now be able access the running application! Let\u2019s move on to testing the application with Docker.<\/p>\n<h2>Running Your Tests<\/h2>\n<p>Now that we have the basic Docker setup for our Phoenix application, running tests is easy. The quickest way to get started is to just run tests the same way you would locally:<\/p>\n<p><code>docker-compose run -e \"MIX_ENV=test\" web mix test<\/code><\/p>\n<p>This works perfectly fine but isn\u2019t terribly extensible. Another option is to set up a dedicated <code>test<\/code> service which we will do here. Update <code>docker-compose.yml<\/code> to the following:<\/p>\n<pre class=\"brush:php\">web:\r\n  build: .\r\n  ports:\r\n    - \"4000:4000\"\r\n  command: mix phoenix.server\r\n  environment:\r\n    - MIX_ENV=dev\r\n    - PORT=4000\r\n  volumes:\r\n    - .:\/app\r\n  links:\r\n    - db\r\ndb:\r\n  image: postgres\r\n  environment:\r\n    - POSTGRES_USER=postgres\r\n    - POSTGRES_PASSWORD=postgres\r\n    - POSTGRES_HOST=db\r\ntest:\r\n  image: phoenixdocker_web\r\n  command: mix test\r\n  environment:\r\n    - MIX_ENV=test\r\n  volumes_from:\r\n    - web\r\n  links:\r\n    - db<\/pre>\n<p>Then update the test Phoenix database configuration in <code>config\/test.exs<\/code> to be:<\/p>\n<pre class=\"brush:php\">config :phoenix_docker, PhoenixDocker.Repo,\r\n  adapter: Ecto.Adapters.Postgres,\r\n  username: System.get_env(\"DB_ENV_POSTGRES_USER\"),\r\n  password: System.get_env(\"DB_ENV_POSTGRES_PASSWORD\"),\r\n  hostname: System.get_env(\"DB_ENV_POSTGRES_HOST\"),\r\n  database: \"phoenix_docker_test\",\r\n  pool: Ecto.Adapters.SQL.Sandbox<\/pre>\n<p>With that, we can now run our tests by simply running:<\/p>\n<p><code>docker-compose run test<\/code><\/p>\n<p>If you want to test a specific file, you can just override the command:<\/p>\n<p><code>docker-compose run test mix test test\/controllers\/page_controller_test.exs<\/code><\/p>\n<p>Running our tests in this way has the added benefit that if we need some test-only dependencies, we don\u2019t need to add them to our <code>web<\/code> service. This can be especially useful for something like browser testing.<\/p>\n<h2>Where to Go From Here<\/h2>\n<p>So far, we\u2019ve set up a Phoenix application with Docker that uses a Postgres database. We use Docker to run the tests for this application in their own service. The application in this walkthrough is very simple, but extending this process to a more complicated app should require very little extra work.<\/p>\n<p>Now that we are using Docker to run our Phoenix tests, extending our test suite to include other types of tests is very easy. For example, we can run acceptance tests using something like <a href=\"https:\/\/github.com\/HashNuke\/hound\">Hound<\/a> together with <a href=\"http:\/\/phantomjs.org\/\">PhantomJS<\/a>. All we need to do is install PhantomJS in our Dockerfile (perhaps creating a test-specific Dockerfile) and add Hound to our Phoenix dependencies in <code>mix.exs<\/code>.<\/p>\n<p>Another natural next step is to utilize Codeship\u2019s Docker-based CI tool, <a href=\"https:\/\/pages.codeship.com\/docker\">Jet<\/a>. With the start we have here, it\u2019s very easy to get up and running with Jet. You can read more about it <a href=\"https:\/\/blog.codeship.com\/introducing-jet-codeships-platform-for-docker\/\">here<\/a> and <a href=\"https:\/\/documentation.codeship.com\/docker-guide\/\">here.<\/a><\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"https:\/\/blog.codeship.com\/running-your-phoenix-tests-using-docker\/\">Running Your Phoenix Tests Using Docker<\/a> from our <a href=\"http:\/\/www.webcodegeeks.com\/join-us\/wcg\/\">WCG partner<\/a>\u00a0Jason Kriss at the <a href=\"http:\/\/blog.codeship.com\/\">Codeship Blog<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>One of the many benefits of using Docker is that it can make testing your applications much easier. Want to test out your Phoenix app on the newest version of Elixir? Easy \u2014 just change one line in the Dockerfile. In this post, we\u2019ll walk through setting up a Phoenix project with Docker, which will &hellip;<\/p>\n","protected":false},"author":133,"featured_media":10356,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[217,336],"class_list":["post-14752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","tag-docker","tag-phoenix"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Running Your Phoenix Tests Using Docker - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"One of the many benefits of using Docker is that it can make testing your applications much easier. Want to test out your Phoenix app on the newest\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Running Your Phoenix Tests Using Docker - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"One of the many benefits of using Docker is that it can make testing your applications much easier. Want to test out your Phoenix app on the newest\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-27T09:15:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jason Kriss\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jason Kriss\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/\"},\"author\":{\"name\":\"Jason Kriss\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/af4520771712aa77192a6c9f14d7bdba\"},\"headline\":\"Running Your Phoenix Tests Using Docker\",\"datePublished\":\"2016-09-27T09:15:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/\"},\"wordCount\":776,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg\",\"keywords\":[\"Docker\",\"Phoenix\"],\"articleSection\":[\"DevOps\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/\",\"name\":\"Running Your Phoenix Tests Using Docker - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg\",\"datePublished\":\"2016-09-27T09:15:51+00:00\",\"description\":\"One of the many benefits of using Docker is that it can make testing your applications much easier. Want to test out your Phoenix app on the newest\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DevOps\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/devops\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Running Your Phoenix Tests Using Docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/af4520771712aa77192a6c9f14d7bdba\",\"name\":\"Jason Kriss\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b768937d66763e5d6c12484d06a09f4b72e3025909e27ec7e5db4fd384a44fcd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b768937d66763e5d6c12484d06a09f4b72e3025909e27ec7e5db4fd384a44fcd?s=96&d=mm&r=g\",\"caption\":\"Jason Kriss\"},\"description\":\"Jason Kriss is the founder of Pagefront, a tool for hosting and deploying Ember apps.\",\"url\":\"https:\/\/www.webcodegeeks.com\/author\/jason-kriss\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Running Your Phoenix Tests Using Docker - Web Code Geeks - 2026","description":"One of the many benefits of using Docker is that it can make testing your applications much easier. Want to test out your Phoenix app on the newest","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/","og_locale":"en_US","og_type":"article","og_title":"Running Your Phoenix Tests Using Docker - Web Code Geeks - 2026","og_description":"One of the many benefits of using Docker is that it can make testing your applications much easier. Want to test out your Phoenix app on the newest","og_url":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2016-09-27T09:15:51+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg","type":"image\/jpeg"}],"author":"Jason Kriss","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Jason Kriss","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/"},"author":{"name":"Jason Kriss","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/af4520771712aa77192a6c9f14d7bdba"},"headline":"Running Your Phoenix Tests Using Docker","datePublished":"2016-09-27T09:15:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/"},"wordCount":776,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg","keywords":["Docker","Phoenix"],"articleSection":["DevOps"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/","url":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/","name":"Running Your Phoenix Tests Using Docker - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg","datePublished":"2016-09-27T09:15:51+00:00","description":"One of the many benefits of using Docker is that it can make testing your applications much easier. Want to test out your Phoenix app on the newest","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/01\/docker-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/devops\/running-phoenix-tests-using-docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"DevOps","item":"https:\/\/www.webcodegeeks.com\/category\/devops\/"},{"@type":"ListItem","position":3,"name":"Running Your Phoenix Tests Using Docker"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/af4520771712aa77192a6c9f14d7bdba","name":"Jason Kriss","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b768937d66763e5d6c12484d06a09f4b72e3025909e27ec7e5db4fd384a44fcd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b768937d66763e5d6c12484d06a09f4b72e3025909e27ec7e5db4fd384a44fcd?s=96&d=mm&r=g","caption":"Jason Kriss"},"description":"Jason Kriss is the founder of Pagefront, a tool for hosting and deploying Ember apps.","url":"https:\/\/www.webcodegeeks.com\/author\/jason-kriss\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/14752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/133"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=14752"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/14752\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/10356"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=14752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=14752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=14752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}