Giter VIP home page Giter VIP logo

fortran-hello-world's Introduction

Fortran Hello World Docker Example

This project contains a simple "Hello World" program written in Fortran, which is compiled and run inside a Docker container. It demonstrates how to use Docker with Fortran for a basic compilation and execution workflow. Using Docker is particularly handy if you don't have Fortran installed on your system, as it removes the need for native installation and configuration.

Prerequisites

Before you begin, ensure you have the following installed on your system:

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Files Description

  • hello_world.f90: The Fortran source file that prints "Hello, World!".
  • Dockerfile: The Dockerfile for creating a Docker image that compiles and runs the Fortran program.

Building the Docker Image

To build the Docker image, navigate to the directory containing the Dockerfile and run the following command:

docker build -t fortran-hello-world .

This command builds a new Docker image named fortran-hello-world based on the instructions in the Dockerfile.

Running the Docker Container

docker run fortran-hello-world

This command creates and starts a container from the fortran-hello-world image. You should see "Hello, World!" printed to the console.

fortran-hello-world's People

Contributors

jzombie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.