Skip to content

Make it easy to run stack on an intranet #2567

Open

Description

@philipcraig

This is an enhancement request. The request is to make it easy to run stack on machines that are cut off behind an intranet, via a trusted repository on the intranet side.

The use-case is as follows. Inside a firewall boundary, there are many machines that need stack setups (e.g. build agent servers and personal workstations). There is a policy that such machines can never access the internet, not even via http(s) proxies.

There can be trusted repositories inside the intranet, with curated access to save down selected internet files.

The request is to make it trivial for a stack setup to be told about the trusted repos. Current efforts involve finding and rewriting all urls used throughout the stack setup process. These include github, stackage and hackage.

Instead, have more relative urls, and a short list of top-level sites that stack can access. Then, when wanting to run stack inside an intranet, only a couple of top-level sites have to be renamed in the stack configuration to be intranet sites.

A secondary request would be code to easily set up such mirrors inside an intranet.

Cc: @ndmitchell

Activity

  1. added this to the P3: Optional milestone on Sep 26, 2016
  2. mgsloan commented on Sep 26, 2016

    @mgsloan
    Contributor

    Another usecase would be for long airplane flights. See also #1594

    This would certainly be an appreciated enhancement! I've marked it as "awaiting PR"

  3. AleXoundOS commented on Oct 27, 2016

    @AleXoundOS

    It's similar to Offline builds, but with a local stackage server as I understood the original idea correctly.
    Yes, there is a great need for such feature. Without this you cannot develop offline unless you know all the packages beforehand to download before getting offline.

    And questionable solutions using docker for using stack offline are not actually solutions to this problem.

  4. decentral1se commented on Feb 15, 2017

    @decentral1se
    Member

    Work related to this going on in #2982 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions